svn commit: r205834 - head/usr.bin/calendar
Dag-Erling Smorgrav
des at FreeBSD.org
Mon Mar 29 13:20:53 UTC 2010
Author: des
Date: Mon Mar 29 13:20:52 2010
New Revision: 205834
URL: http://svn.freebsd.org/changeset/base/205834
Log:
size_t is not equivalent to int on 64-bit platforms.
Pointy hat to: edwin@
Modified:
head/usr.bin/calendar/parsedata.c
Modified: head/usr.bin/calendar/parsedata.c
==============================================================================
--- head/usr.bin/calendar/parsedata.c Mon Mar 29 12:32:16 2010 (r205833)
+++ head/usr.bin/calendar/parsedata.c Mon Mar 29 13:20:52 2010 (r205834)
@@ -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;
More information about the svn-src-all
mailing list