projects/aports·blob master · refs

59 lines · 1.6 KiB

1diff --git a/cmd_cp.c b/cmd_cp.c
2index 9a6845c..866805a 100755
3--- a/cmd_cp.c
4+++ b/cmd_cp.c
5@@ -5,6 +5,7 @@
6
7 #include <stdio.h>
8 #include <stdlib.h>
9+#include <string.h>
10 #include <unistd.h>
11 #include <limits.h>
12 #include "getopt.h"
13diff --git a/cmd_ls.c b/cmd_ls.c
14index 2ed38cf..738fb03 100755
15--- a/cmd_ls.c
16+++ b/cmd_ls.c
17@@ -5,6 +5,7 @@
18
19 #include <stdio.h>
20 #include <stdlib.h>
21+#include <string.h>
22 #include <assert.h>
23 #include <time.h>
24 #include "interface.h"
25diff --git a/configure b/configure
26index bb18d07..1b427d2 100755
27--- a/configure
28+++ b/configure
29@@ -1135,7 +1135,7 @@ cat > conftest.$ac_ext << EOF
30 #line 1136 "configure"
31 #include "confdefs.h"
32
33-main(){return(0);}
34+int main(){return(0);}
35 EOF
36 if { (eval echo configure:1141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
37 ac_cv_prog_cc_works=yes
38@@ -2084,7 +2084,7 @@ else
39 cat > conftest.$ac_ext <<EOF
40 #line 2086 "configure"
41 #include "confdefs.h"
42-main() { exit (fnmatch ("a*", "abc", 0) != 0); }
43+int main() { exit (fnmatch ("a*", "abc", 0) != 0); }
44 EOF
45 if { (eval echo configure:2090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
46 then
47diff --git a/output.c b/output.c
48index f8a2b7b..70c0e17 100755
49--- a/output.c
50+++ b/output.c
51@@ -54,7 +54,7 @@ int display(displaylevel_t level, char *format, ...)
52 /* get the verbosity level from the fatback symbol table */
53 if (!(verbose_var = get_fbvar("verbose"))) {
54 printf("Error reading variable\n");
55- return;
56+ return -1;
57 } else {
58 verbose = verbose_var->val.ival;
59 free(verbose_var);