diff options
| author | David J. MacKenzie | 1994-10-12 20:21:51 +0000 |
|---|---|---|
| committer | David J. MacKenzie | 1994-10-12 20:21:51 +0000 |
| commit | 340ff9deaea2a7258d3ee1eca65487b4cd8dd305 (patch) | |
| tree | 48728b1b42696e296b41072130301fc3ea627440 /lib-src | |
| parent | e2f9d9afabe51c8be7e6f4327197670b941789f2 (diff) | |
| download | emacs-340ff9deaea2a7258d3ee1eca65487b4cd8dd305.tar.gz emacs-340ff9deaea2a7258d3ee1eca65487b4cd8dd305.zip | |
Eliminate some -Wall warnings.
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/b2m.c | 2 | ||||
| -rw-r--r-- | lib-src/cvtmail.c | 45 | ||||
| -rw-r--r-- | lib-src/digest-doc.c | 2 | ||||
| -rw-r--r-- | lib-src/emacsclient.c | 3 | ||||
| -rw-r--r-- | lib-src/etags.c | 4 | ||||
| -rw-r--r-- | lib-src/fakemail.c | 2 | ||||
| -rw-r--r-- | lib-src/hexl.c | 4 | ||||
| -rw-r--r-- | lib-src/make-docfile.c | 13 | ||||
| -rw-r--r-- | lib-src/movemail.c | 2 | ||||
| -rw-r--r-- | lib-src/profile.c | 2 | ||||
| -rw-r--r-- | lib-src/sorted-doc.c | 26 | ||||
| -rw-r--r-- | lib-src/test-distrib.c | 4 | ||||
| -rw-r--r-- | lib-src/timer.c | 1 | ||||
| -rw-r--r-- | lib-src/wakeup.c | 1 | ||||
| -rw-r--r-- | lib-src/yow.c | 3 |
15 files changed, 75 insertions, 39 deletions
diff --git a/lib-src/b2m.c b/lib-src/b2m.c index b6e027590a5..ededf304f00 100644 --- a/lib-src/b2m.c +++ b/lib-src/b2m.c | |||
| @@ -40,6 +40,7 @@ int header = FALSE, printing; | |||
| 40 | time_t ltoday; | 40 | time_t ltoday; |
| 41 | char from[MAX_DATA_LEN], labels[MAX_DATA_LEN], data[MAX_DATA_LEN], *p, *today; | 41 | char from[MAX_DATA_LEN], labels[MAX_DATA_LEN], data[MAX_DATA_LEN], *p, *today; |
| 42 | 42 | ||
| 43 | int | ||
| 43 | main (argc, argv) | 44 | main (argc, argv) |
| 44 | int argc; | 45 | int argc; |
| 45 | char **argv; | 46 | char **argv; |
| @@ -117,4 +118,5 @@ main (argc, argv) | |||
| 117 | if (printing) | 118 | if (printing) |
| 118 | puts (data); | 119 | puts (data); |
| 119 | } | 120 | } |
| 121 | return 0; | ||
| 120 | } | 122 | } |
diff --git a/lib-src/cvtmail.c b/lib-src/cvtmail.c index c1fec8792c5..b6e0c58ceb3 100644 --- a/lib-src/cvtmail.c +++ b/lib-src/cvtmail.c | |||
| @@ -36,10 +36,13 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |||
| 36 | 36 | ||
| 37 | char *malloc (); | 37 | char *malloc (); |
| 38 | char *realloc (); | 38 | char *realloc (); |
| 39 | char *getenv (); | ||
| 40 | |||
| 39 | char *xmalloc (); | 41 | char *xmalloc (); |
| 40 | char *xrealloc (); | 42 | char *xrealloc (); |
| 41 | char *getenv (); | 43 | void skip_to_lf (); |
| 42 | 44 | ||
| 45 | int | ||
| 43 | main (argc, argv) | 46 | main (argc, argv) |
| 44 | int argc; | 47 | int argc; |
| 45 | char *argv[]; | 48 | char *argv[]; |
| @@ -53,7 +56,7 @@ main (argc, argv) | |||
| 53 | FILE *mddf; | 56 | FILE *mddf; |
| 54 | FILE *mfilef; | 57 | FILE *mfilef; |
| 55 | FILE *cff; | 58 | FILE *cff; |
| 56 | char pre[10], post[100]; | 59 | char pre[10]; |
| 57 | char name[14]; | 60 | char name[14]; |
| 58 | int c; | 61 | int c; |
| 59 | 62 | ||
| @@ -103,6 +106,7 @@ main (argc, argv) | |||
| 103 | return 0; | 106 | return 0; |
| 104 | } | 107 | } |
| 105 | 108 | ||
| 109 | void | ||
| 106 | skip_to_lf (stream) | 110 | skip_to_lf (stream) |
| 107 | FILE *stream; | 111 | FILE *stream; |
| 108 | { | 112 | { |
| @@ -111,6 +115,26 @@ skip_to_lf (stream) | |||
| 111 | ; | 115 | ; |
| 112 | } | 116 | } |
| 113 | 117 | ||
| 118 | |||
| 119 | void | ||
| 120 | error (s1, s2) | ||
| 121 | char *s1, *s2; | ||
| 122 | { | ||
| 123 | fprintf (stderr, "cvtmail: "); | ||
| 124 | fprintf (stderr, s1, s2); | ||
| 125 | fprintf (stderr, "\n"); | ||
| 126 | } | ||
| 127 | |||
| 128 | /* Print error message and exit. */ | ||
| 129 | |||
| 130 | void | ||
| 131 | fatal (s1, s2) | ||
| 132 | char *s1, *s2; | ||
| 133 | { | ||
| 134 | error (s1, s2); | ||
| 135 | exit (1); | ||
| 136 | } | ||
| 137 | |||
| 114 | char * | 138 | char * |
| 115 | xmalloc (size) | 139 | xmalloc (size) |
| 116 | unsigned size; | 140 | unsigned size; |
| @@ -131,20 +155,3 @@ xrealloc (ptr, size) | |||
| 131 | fatal ("virtual memory exhausted"); | 155 | fatal ("virtual memory exhausted"); |
| 132 | return result; | 156 | return result; |
| 133 | } | 157 | } |
| 134 | |||
| 135 | /* Print error message and exit. */ | ||
| 136 | |||
| 137 | fatal (s1, s2) | ||
| 138 | char *s1, *s2; | ||
| 139 | { | ||
| 140 | error (s1, s2); | ||
| 141 | exit (1); | ||
| 142 | } | ||
| 143 | |||
| 144 | error (s1, s2) | ||
| 145 | char *s1, *s2; | ||
| 146 | { | ||
| 147 | fprintf (stderr, "cvtmail: "); | ||
| 148 | fprintf (stderr, s1, s2); | ||
| 149 | fprintf (stderr, "\n"); | ||
| 150 | } | ||
diff --git a/lib-src/digest-doc.c b/lib-src/digest-doc.c index d7764c08a65..1d47ce0a0ce 100644 --- a/lib-src/digest-doc.c +++ b/lib-src/digest-doc.c | |||
| @@ -6,6 +6,8 @@ | |||
| 6 | but in texinfo format and sorted by function/variable name. */ | 6 | but in texinfo format and sorted by function/variable name. */ |
| 7 | 7 | ||
| 8 | #include <stdio.h> | 8 | #include <stdio.h> |
| 9 | |||
| 10 | int | ||
| 9 | main () | 11 | main () |
| 10 | { | 12 | { |
| 11 | register int ch; | 13 | register int ch; |
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c index 76d0b4e54d9..303ad654030 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c | |||
| @@ -55,6 +55,7 @@ main (argc, argv) | |||
| 55 | extern char *strerror (); | 55 | extern char *strerror (); |
| 56 | extern int errno; | 56 | extern int errno; |
| 57 | 57 | ||
| 58 | int | ||
| 58 | main (argc, argv) | 59 | main (argc, argv) |
| 59 | int argc; | 60 | int argc; |
| 60 | char **argv; | 61 | char **argv; |
| @@ -167,7 +168,7 @@ main (argc, argv) | |||
| 167 | while (str = fgets (string, BUFSIZ, out)) | 168 | while (str = fgets (string, BUFSIZ, out)) |
| 168 | printf ("%s", str); | 169 | printf ("%s", str); |
| 169 | 170 | ||
| 170 | exit (0); | 171 | return 0; |
| 171 | } | 172 | } |
| 172 | 173 | ||
| 173 | #else /* This is the SYSV IPC section */ | 174 | #else /* This is the SYSV IPC section */ |
diff --git a/lib-src/etags.c b/lib-src/etags.c index f893111f8e4..3be430c1117 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c | |||
| @@ -55,6 +55,7 @@ char pot_etags_version[] = "@(#) pot revision number is 10.32"; | |||
| 55 | #include "getopt.h" | 55 | #include "getopt.h" |
| 56 | 56 | ||
| 57 | extern char *getenv (); | 57 | extern char *getenv (); |
| 58 | char *malloc (), *realloc (); | ||
| 58 | 59 | ||
| 59 | /* Define CTAGS to make the program "ctags" compatible with the usual one. | 60 | /* Define CTAGS to make the program "ctags" compatible with the usual one. |
| 60 | Let it undefined to make the program "etags", which makes emacs-style | 61 | Let it undefined to make the program "etags", which makes emacs-style |
| @@ -161,6 +162,9 @@ char *etags_getcwd (); | |||
| 161 | char *relative_filename (), *absolute_filename (), *absolute_dirname (); | 162 | char *relative_filename (), *absolute_filename (), *absolute_dirname (); |
| 162 | char *xmalloc (), *xrealloc (); | 163 | char *xmalloc (), *xrealloc (); |
| 163 | int total_size_of_entries (); | 164 | int total_size_of_entries (); |
| 165 | int string_numeric_p (); | ||
| 166 | int substr (); | ||
| 167 | int prestr (); | ||
| 164 | long readline (); | 168 | long readline (); |
| 165 | 169 | ||
| 166 | void Asm_labels (); | 170 | void Asm_labels (); |
diff --git a/lib-src/fakemail.c b/lib-src/fakemail.c index 59bf2d661ac..5adcf66fbc8 100644 --- a/lib-src/fakemail.c +++ b/lib-src/fakemail.c | |||
| @@ -23,11 +23,13 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |||
| 23 | 23 | ||
| 24 | #if defined (BSD) && !defined (BSD4_1) && !defined (USE_FAKEMAIL) | 24 | #if defined (BSD) && !defined (BSD4_1) && !defined (USE_FAKEMAIL) |
| 25 | /* This program isnot used in BSD, so just avoid loader complaints. */ | 25 | /* This program isnot used in BSD, so just avoid loader complaints. */ |
| 26 | void | ||
| 26 | main () | 27 | main () |
| 27 | { | 28 | { |
| 28 | } | 29 | } |
| 29 | #else /* not BSD 4.2 (or newer) */ | 30 | #else /* not BSD 4.2 (or newer) */ |
| 30 | #ifdef MSDOS | 31 | #ifdef MSDOS |
| 32 | void | ||
| 31 | main () | 33 | main () |
| 32 | { | 34 | { |
| 33 | } | 35 | } |
diff --git a/lib-src/hexl.c b/lib-src/hexl.c index bd6220e0ba5..b090dae335b 100644 --- a/lib-src/hexl.c +++ b/lib-src/hexl.c | |||
| @@ -16,6 +16,9 @@ int base = DEFAULT_BASE, un_flag = FALSE, iso_flag = FALSE, endian = 1; | |||
| 16 | int group_by = DEFAULT_GROUPING; | 16 | int group_by = DEFAULT_GROUPING; |
| 17 | char *progname; | 17 | char *progname; |
| 18 | 18 | ||
| 19 | void usage(); | ||
| 20 | |||
| 21 | int | ||
| 19 | main (argc, argv) | 22 | main (argc, argv) |
| 20 | int argc; | 23 | int argc; |
| 21 | char *argv[]; | 24 | char *argv[]; |
| @@ -231,6 +234,7 @@ main (argc, argv) | |||
| 231 | return 0; | 234 | return 0; |
| 232 | } | 235 | } |
| 233 | 236 | ||
| 237 | void | ||
| 234 | usage () | 238 | usage () |
| 235 | { | 239 | { |
| 236 | fprintf (stderr, "usage: %s [-de] [-iso]\n", progname); | 240 | fprintf (stderr, "usage: %s [-de] [-iso]\n", progname); |
diff --git a/lib-src/make-docfile.c b/lib-src/make-docfile.c index 58062efeee1..72be211f868 100644 --- a/lib-src/make-docfile.c +++ b/lib-src/make-docfile.c | |||
| @@ -44,8 +44,13 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |||
| 44 | #define READ_BINARY "r" | 44 | #define READ_BINARY "r" |
| 45 | #endif /* not MSDOS */ | 45 | #endif /* not MSDOS */ |
| 46 | 46 | ||
| 47 | int scan_file (); | ||
| 48 | int scan_lisp_file (); | ||
| 49 | int scan_c_file (); | ||
| 50 | |||
| 47 | FILE *outfile; | 51 | FILE *outfile; |
| 48 | 52 | ||
| 53 | int | ||
| 49 | main (argc, argv) | 54 | main (argc, argv) |
| 50 | int argc; | 55 | int argc; |
| 51 | char **argv; | 56 | char **argv; |
| @@ -83,11 +88,13 @@ main (argc, argv) | |||
| 83 | #ifndef VMS | 88 | #ifndef VMS |
| 84 | exit (err_count); /* see below - shane */ | 89 | exit (err_count); /* see below - shane */ |
| 85 | #endif /* VMS */ | 90 | #endif /* VMS */ |
| 91 | return err_count; | ||
| 86 | } | 92 | } |
| 87 | 93 | ||
| 88 | /* Read file FILENAME and output its doc strings to outfile. */ | 94 | /* Read file FILENAME and output its doc strings to outfile. */ |
| 89 | /* Return 1 if file is not found, 0 if it is found. */ | 95 | /* Return 1 if file is not found, 0 if it is found. */ |
| 90 | 96 | ||
| 97 | int | ||
| 91 | scan_file (filename) | 98 | scan_file (filename) |
| 92 | char *filename; | 99 | char *filename; |
| 93 | { | 100 | { |
| @@ -109,6 +116,7 @@ char buf[128]; | |||
| 109 | Convert escape sequences \n and \t to newline and tab; | 116 | Convert escape sequences \n and \t to newline and tab; |
| 110 | discard \ followed by newline. */ | 117 | discard \ followed by newline. */ |
| 111 | 118 | ||
| 119 | int | ||
| 112 | read_c_string (infile, printflag) | 120 | read_c_string (infile, printflag) |
| 113 | FILE *infile; | 121 | FILE *infile; |
| 114 | int printflag; | 122 | int printflag; |
| @@ -156,6 +164,7 @@ read_c_string (infile, printflag) | |||
| 156 | /* Write to file OUT the argument names of function FUNC, whose text is in BUF. | 164 | /* Write to file OUT the argument names of function FUNC, whose text is in BUF. |
| 157 | MINARGS and MAXARGS are the minimum and maximum number of arguments. */ | 165 | MINARGS and MAXARGS are the minimum and maximum number of arguments. */ |
| 158 | 166 | ||
| 167 | void | ||
| 159 | write_c_args (out, func, buf, minargs, maxargs) | 168 | write_c_args (out, func, buf, minargs, maxargs) |
| 160 | FILE *out; | 169 | FILE *out; |
| 161 | char *func, *buf; | 170 | char *func, *buf; |
| @@ -240,6 +249,7 @@ write_c_args (out, func, buf, minargs, maxargs) | |||
| 240 | Looks for DEFUN constructs such as are defined in ../src/lisp.h. | 249 | Looks for DEFUN constructs such as are defined in ../src/lisp.h. |
| 241 | Accepts any word starting DEF... so it finds DEFSIMPLE and DEFPRED. */ | 250 | Accepts any word starting DEF... so it finds DEFSIMPLE and DEFPRED. */ |
| 242 | 251 | ||
| 252 | int | ||
| 243 | scan_c_file (filename, mode) | 253 | scan_c_file (filename, mode) |
| 244 | char *filename, *mode; | 254 | char *filename, *mode; |
| 245 | { | 255 | { |
| @@ -486,7 +496,7 @@ read_lisp_symbol (infile, buffer) | |||
| 486 | skip_white (infile); | 496 | skip_white (infile); |
| 487 | } | 497 | } |
| 488 | 498 | ||
| 489 | 499 | int | |
| 490 | scan_lisp_file (filename, mode) | 500 | scan_lisp_file (filename, mode) |
| 491 | char *filename, *mode; | 501 | char *filename, *mode; |
| 492 | { | 502 | { |
| @@ -504,7 +514,6 @@ scan_lisp_file (filename, mode) | |||
| 504 | while (!feof (infile)) | 514 | while (!feof (infile)) |
| 505 | { | 515 | { |
| 506 | char buffer [BUFSIZ]; | 516 | char buffer [BUFSIZ]; |
| 507 | char *fillp = buffer; | ||
| 508 | char type; | 517 | char type; |
| 509 | 518 | ||
| 510 | if (c != '\n') | 519 | if (c != '\n') |
diff --git a/lib-src/movemail.c b/lib-src/movemail.c index c971c9f2b11..283aca21c13 100644 --- a/lib-src/movemail.c +++ b/lib-src/movemail.c | |||
| @@ -546,11 +546,13 @@ popmail (user, outfile) | |||
| 546 | * directories have lost mail when over quota because these checks were | 546 | * directories have lost mail when over quota because these checks were |
| 547 | * not made in previous versions of movemail. */ | 547 | * not made in previous versions of movemail. */ |
| 548 | 548 | ||
| 549 | #ifdef BSD | ||
| 549 | if (fsync (mbfi) < 0) | 550 | if (fsync (mbfi) < 0) |
| 550 | { | 551 | { |
| 551 | error ("Error in fsync: %s", strerror (errno)); | 552 | error ("Error in fsync: %s", strerror (errno)); |
| 552 | return (1); | 553 | return (1); |
| 553 | } | 554 | } |
| 555 | #endif | ||
| 554 | 556 | ||
| 555 | if (close (mbfi) == -1) | 557 | if (close (mbfi) == -1) |
| 556 | { | 558 | { |
diff --git a/lib-src/profile.c b/lib-src/profile.c index 16a74b71351..09b094ce934 100644 --- a/lib-src/profile.c +++ b/lib-src/profile.c | |||
| @@ -39,7 +39,7 @@ static char time_string[30]; | |||
| 39 | 39 | ||
| 40 | /* Reset the stopwatch to zero. */ | 40 | /* Reset the stopwatch to zero. */ |
| 41 | 41 | ||
| 42 | int | 42 | void |
| 43 | reset_watch () | 43 | reset_watch () |
| 44 | { | 44 | { |
| 45 | EMACS_GET_TIME (TV1); | 45 | EMACS_GET_TIME (TV1); |
diff --git a/lib-src/sorted-doc.c b/lib-src/sorted-doc.c index 129ce9c83b3..0ba419d4907 100644 --- a/lib-src/sorted-doc.c +++ b/lib-src/sorted-doc.c | |||
| @@ -35,17 +35,9 @@ struct docstr /* Allocated thing for an entry. */ | |||
| 35 | }; | 35 | }; |
| 36 | 36 | ||
| 37 | 37 | ||
| 38 | /* Print error message and exit. */ | ||
| 39 | |||
| 40 | fatal (s1, s2) | ||
| 41 | char *s1, *s2; | ||
| 42 | { | ||
| 43 | error (s1, s2); | ||
| 44 | exit (1); | ||
| 45 | } | ||
| 46 | |||
| 47 | /* Print error message. `s1' is printf control string, `s2' is arg for it. */ | 38 | /* Print error message. `s1' is printf control string, `s2' is arg for it. */ |
| 48 | 39 | ||
| 40 | void | ||
| 49 | error (s1, s2) | 41 | error (s1, s2) |
| 50 | char *s1, *s2; | 42 | char *s1, *s2; |
| 51 | { | 43 | { |
| @@ -54,6 +46,16 @@ error (s1, s2) | |||
| 54 | fprintf (stderr, "\n"); | 46 | fprintf (stderr, "\n"); |
| 55 | } | 47 | } |
| 56 | 48 | ||
| 49 | /* Print error message and exit. */ | ||
| 50 | |||
| 51 | void | ||
| 52 | fatal (s1, s2) | ||
| 53 | char *s1, *s2; | ||
| 54 | { | ||
| 55 | error (s1, s2); | ||
| 56 | exit (1); | ||
| 57 | } | ||
| 58 | |||
| 57 | /* Like malloc but get fatal error if memory is exhausted. */ | 59 | /* Like malloc but get fatal error if memory is exhausted. */ |
| 58 | 60 | ||
| 59 | char * | 61 | char * |
| @@ -67,7 +69,7 @@ xmalloc (size) | |||
| 67 | } | 69 | } |
| 68 | 70 | ||
| 69 | char * | 71 | char * |
| 70 | strsav (str) | 72 | xstrdup (str) |
| 71 | char * str; | 73 | char * str; |
| 72 | { | 74 | { |
| 73 | char *buf = xmalloc (strlen (str) + 1); | 75 | char *buf = xmalloc (strlen (str) + 1); |
| @@ -98,12 +100,12 @@ char *states[] = | |||
| 98 | "WAITING", "BEG_NAME", "NAME_GET", "BEG_DESC", "DESC_GET" | 100 | "WAITING", "BEG_NAME", "NAME_GET", "BEG_DESC", "DESC_GET" |
| 99 | }; | 101 | }; |
| 100 | 102 | ||
| 103 | int | ||
| 101 | main () | 104 | main () |
| 102 | { | 105 | { |
| 103 | register DOCSTR *dp = NULL; /* allocated DOCSTR */ | 106 | register DOCSTR *dp = NULL; /* allocated DOCSTR */ |
| 104 | register LINE *lp = NULL; /* allocated line */ | 107 | register LINE *lp = NULL; /* allocated line */ |
| 105 | register char *bp; /* ptr inside line buffer */ | 108 | register char *bp; /* ptr inside line buffer */ |
| 106 | int notfirst = 0; /* set after read something */ | ||
| 107 | register enum state state = WAITING; /* state at start */ | 109 | register enum state state = WAITING; /* state at start */ |
| 108 | int cnt = 0; /* number of DOCSTRs read */ | 110 | int cnt = 0; /* number of DOCSTRs read */ |
| 109 | 111 | ||
| @@ -169,7 +171,7 @@ main () | |||
| 169 | else /* saving and changing state */ | 171 | else /* saving and changing state */ |
| 170 | { | 172 | { |
| 171 | *bp = NUL; | 173 | *bp = NUL; |
| 172 | bp = strsav (buf); | 174 | bp = xstrdup (buf); |
| 173 | 175 | ||
| 174 | if (state == NAME_GET) | 176 | if (state == NAME_GET) |
| 175 | dp->name = bp; | 177 | dp->name = bp; |
diff --git a/lib-src/test-distrib.c b/lib-src/test-distrib.c index 897922a3bf5..33dc0a46ab4 100644 --- a/lib-src/test-distrib.c +++ b/lib-src/test-distrib.c | |||
| @@ -32,6 +32,7 @@ cool_read (fd, buf, size) | |||
| 32 | } | 32 | } |
| 33 | } | 33 | } |
| 34 | 34 | ||
| 35 | int | ||
| 35 | main (argc, argv) | 36 | main (argc, argv) |
| 36 | int argc; | 37 | int argc; |
| 37 | char **argv; | 38 | char **argv; |
| @@ -63,7 +64,6 @@ have been corrupted in the files of Emacs, and it will not work.\n", | |||
| 63 | close (fd); | 64 | close (fd); |
| 64 | #ifdef VMS | 65 | #ifdef VMS |
| 65 | exit (1); /* On VMS, success is 1. */ | 66 | exit (1); /* On VMS, success is 1. */ |
| 66 | #else | ||
| 67 | exit (0); | ||
| 68 | #endif | 67 | #endif |
| 68 | return (0); | ||
| 69 | } | 69 | } |
diff --git a/lib-src/timer.c b/lib-src/timer.c index 6a3a3fba101..9bd547ce8f2 100644 --- a/lib-src/timer.c +++ b/lib-src/timer.c | |||
| @@ -199,7 +199,6 @@ void | |||
| 199 | getevent () | 199 | getevent () |
| 200 | { | 200 | { |
| 201 | int i; | 201 | int i; |
| 202 | int n_events; | ||
| 203 | 202 | ||
| 204 | /* In principle the itimer should be disabled on entry to this | 203 | /* In principle the itimer should be disabled on entry to this |
| 205 | function, but it really doesn't make any important difference | 204 | function, but it really doesn't make any important difference |
diff --git a/lib-src/wakeup.c b/lib-src/wakeup.c index c26289c84e2..9c8838dbc13 100644 --- a/lib-src/wakeup.c +++ b/lib-src/wakeup.c | |||
| @@ -18,6 +18,7 @@ | |||
| 18 | 18 | ||
| 19 | struct tm *localtime (); | 19 | struct tm *localtime (); |
| 20 | 20 | ||
| 21 | void | ||
| 21 | main (argc, argv) | 22 | main (argc, argv) |
| 22 | int argc; | 23 | int argc; |
| 23 | char **argv; | 24 | char **argv; |
diff --git a/lib-src/yow.c b/lib-src/yow.c index 0f289a19358..05ec9d43415 100644 --- a/lib-src/yow.c +++ b/lib-src/yow.c | |||
| @@ -30,6 +30,7 @@ | |||
| 30 | &res;}) | 30 | &res;}) |
| 31 | #endif | 31 | #endif |
| 32 | 32 | ||
| 33 | int | ||
| 33 | main (argc, argv) | 34 | main (argc, argv) |
| 34 | int argc; | 35 | int argc; |
| 35 | char *argv[]; | 36 | char *argv[]; |
| @@ -58,7 +59,7 @@ main (argc, argv) | |||
| 58 | setup_yow(fp); | 59 | setup_yow(fp); |
| 59 | yow(fp); | 60 | yow(fp); |
| 60 | fclose(fp); | 61 | fclose(fp); |
| 61 | exit(0); | 62 | return 0; |
| 62 | } | 63 | } |
| 63 | 64 | ||
| 64 | static long len = -1; | 65 | static long len = -1; |