aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2019-01-19 16:50:23 -0600
committerRob Landley <rob@landley.net>2019-01-19 16:50:23 -0600
commit81207825c50fa9a4ec1475024543f830dee247fd (patch)
treebdb0b7665096d3e5c21ec76733dc0bcc079f5451 /scripts
parent7bfdff085dca664b3bbda50371f4f67be2fbd5cf (diff)
downloadtoybox-81207825c50fa9a4ec1475024543f830dee247fd.tar.gz
Fix various warnings building on FreeBSD.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/config2help.c4
-rw-r--r--scripts/mkflags.c2
-rw-r--r--scripts/mktags.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/scripts/config2help.c b/scripts/config2help.c
index be53547d..edb1caea 100644
--- a/scripts/config2help.c
+++ b/scripts/config2help.c
@@ -19,7 +19,7 @@
#include <poll.h>
#include <sys/socket.h>
-/****************** functions copied from lib/*.c ********************/
+//****************** functions copied from lib/*.c ********************
struct double_list {
struct double_list *next, *prev;
@@ -107,7 +107,7 @@ struct double_list *dlist_add(struct double_list **list, char *data)
return new;
}
-/****************** end copies of lib/*.c *************/
+//****************** end copies of lib/*.c *************
// Parse config files into data structures.
diff --git a/scripts/mkflags.c b/scripts/mkflags.c
index b28ae1e1..93294884 100644
--- a/scripts/mkflags.c
+++ b/scripts/mkflags.c
@@ -64,7 +64,7 @@ char *mark_gaps(char *flags, char *all)
if (bare) bare = chrtype(c);
if (*flags == c) {
*(new++) = c;
- *flags++;
+ flags++;
continue;
}
diff --git a/scripts/mktags.c b/scripts/mktags.c
index 9c23cf17..05494b2a 100644
--- a/scripts/mktags.c
+++ b/scripts/mktags.c
@@ -14,7 +14,7 @@ int main(int argc, char *argv[])
char *line = 0, *s;
ssize_t len;
- len = getline(&line, &len, stdin);
+ len = getline(&line, (void *)&len, stdin);
if (len<0) break;
while (len && isspace(line[len-1])) line[--len]=0;