summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2003-04-17 14:10:47 +0000
committermillert <millert@openbsd.org>2003-04-17 14:10:47 +0000
commit07cabc11745dacfb1be98840de59104a5e4cb867 (patch)
tree5c060698f94a4ddab0b6b6ce5e187297686b6117
parenthis is wrong (diff)
downloadwireguard-openbsd-07cabc11745dacfb1be98840de59104a5e4cb867.tar.xz
wireguard-openbsd-07cabc11745dacfb1be98840de59104a5e4cb867.zip
Change a few return values from char to int since these functions
can return EOF. Fixes gcc warnings (and potential problems) on ppc.
-rw-r--r--usr.sbin/cron/entry.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/usr.sbin/cron/entry.c b/usr.sbin/cron/entry.c
index 64e8e746cea..ce2d2e7ed8d 100644
--- a/usr.sbin/cron/entry.c
+++ b/usr.sbin/cron/entry.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: entry.c,v 1.24 2003/03/12 18:15:55 millert Exp $ */
+/* $OpenBSD: entry.c,v 1.25 2003/04/17 14:10:47 millert Exp $ */
/*
* Copyright 1988,1990,1993,1994 by Paul Vixie
@@ -23,7 +23,7 @@
*/
#if !defined(lint) && !defined(LINT)
-static char const rcsid[] = "$OpenBSD: entry.c,v 1.24 2003/03/12 18:15:55 millert Exp $";
+static char const rcsid[] = "$OpenBSD: entry.c,v 1.25 2003/04/17 14:10:47 millert Exp $";
#endif
/* vix 26jan87 [RCS'd; rest of log is in RCS file]
@@ -54,10 +54,10 @@ static const char *ecodes[] =
"out of memory"
};
-static char get_list(bitstr_t *, int, int, const char *[], char, FILE *),
- get_range(bitstr_t *, int, int, const char *[], char, FILE *),
- get_number(int *, int, const char *[], char, FILE *, const char *);
-static int set_element(bitstr_t *, int, int, int);
+static int get_list(bitstr_t *, int, int, const char *[], int, FILE *),
+ get_range(bitstr_t *, int, int, const char *[], int, FILE *),
+ get_number(int *, int, const char *[], int, FILE *, const char *),
+ set_element(bitstr_t *, int, int, int);
void
free_entry(entry *e) {
@@ -397,9 +397,9 @@ load_entry(FILE *file, void (*error_func)(), struct passwd *pw, char **envp) {
return (NULL);
}
-static char
+static int
get_list(bitstr_t *bits, int low, int high, const char *names[],
- char ch, FILE *file)
+ int ch, FILE *file)
{
int done;
@@ -441,9 +441,9 @@ get_list(bitstr_t *bits, int low, int high, const char *names[],
}
-static char
+static int
get_range(bitstr_t *bits, int low, int high, const char *names[],
- char ch, FILE *file)
+ int ch, FILE *file)
{
/* range = number | number "-" number [ "/" number ]
*/
@@ -525,8 +525,8 @@ get_range(bitstr_t *bits, int low, int high, const char *names[],
return (ch);
}
-static char
-get_number(int *numptr, int low, const char *names[], char ch, FILE *file,
+static int
+get_number(int *numptr, int low, const char *names[], int ch, FILE *file,
const char *terms) {
char temp[MAX_TEMPSTR], *pc;
int len, i;