diff options
author | des <des@FreeBSD.org> | 2010-03-29 13:20:52 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2010-03-29 13:20:52 +0000 |
commit | 38f0ed3dad1ef8244fbf4ce5f541780d7dbeba61 (patch) | |
tree | 9cd9b66ec32a2a8e6da29e26b1ac520621de4e20 /usr.bin | |
parent | 8e0cabacd01ba0fdeb442c8698ce5f0f9819102d (diff) | |
download | FreeBSD-src-38f0ed3dad1ef8244fbf4ce5f541780d7dbeba61.zip FreeBSD-src-38f0ed3dad1ef8244fbf4ce5f541780d7dbeba61.tar.gz |
size_t is not equivalent to int on 64-bit platforms.
Pointy hat to: edwin@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/calendar/parsedata.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/calendar/parsedata.c b/usr.bin/calendar/parsedata.c index fd6b6b6..abe765c 100644 --- a/usr.bin/calendar/parsedata.c +++ b/usr.bin/calendar/parsedata.c @@ -39,9 +39,9 @@ __FBSDID("$FreeBSD$"); static char *showflags(int flags); static int isonlydigits(char *s, int nostar); static const char *getmonthname(int i); -static int checkmonth(char *s, int *len, int *offset, const char **month); +static int checkmonth(char *s, size_t *len, size_t *offset, const char **month); static const char *getdayofweekname(int i); -static int checkdayofweek(char *s, int *len, int *offset, const char **dow); +static int checkdayofweek(char *s, size_t *len, size_t *offset, const char **dow); static int indextooffset(char *s); static int parseoffset(char *s); static char *floattoday(int year, double f); @@ -771,7 +771,7 @@ getmonthname(int i) } static int -checkmonth(char *s, int *len, int *offset, const char **month) +checkmonth(char *s, size_t *len, size_t *offset, const char **month) { struct fixs *n; int i; @@ -822,7 +822,7 @@ getdayofweekname(int i) } static int -checkdayofweek(char *s, int *len, int *offset, const char **dow) +checkdayofweek(char *s, size_t *len, size_t *offset, const char **dow) { struct fixs *n; int i; |