diff options
Diffstat (limited to 'usr.sbin/zic/zic.c')
-rw-r--r-- | usr.sbin/zic/zic.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/usr.sbin/zic/zic.c b/usr.sbin/zic/zic.c index 109b978..1d50a7f 100644 --- a/usr.sbin/zic/zic.c +++ b/usr.sbin/zic/zic.c @@ -89,6 +89,7 @@ static int addtype P((long gmtoff, const char * abbr, int isdst, static void leapadd P((time_t t, int positive, int rolling, int count)); static void adjleap P((void)); static void associate P((void)); +static int atcomp P((const void * avp, const void * bvp)); static int ciequal P((const char * ap, const char * bp)); static void convert P((long val, char * buf)); static void dolink P((const char * fromfile, const char * tofile)); @@ -129,6 +130,7 @@ static void setgroup P((gid_t *flag, const char *name)); static void setuser P((uid_t *flag, const char *name)); static time_t tadd P((time_t t1, long t2)); static void usage P((void)); +static void warning P((const char * const string)); static void writezone P((const char * name)); static int yearistype P((int year, const char * type)); @@ -1360,12 +1362,14 @@ FILE * const fp; static int atcomp(avp, bvp) -void * avp; -void * bvp; +const void * avp; +const void * bvp; { - if (((struct attype *) avp)->at < ((struct attype *) bvp)->at) + if (((const struct attype *) avp)->at < + ((const struct attype *) bvp)->at) return -1; - else if (((struct attype *) avp)->at > ((struct attype *) bvp)->at) + else if (((const struct attype *) avp)->at > + ((const struct attype *) bvp)->at) return 1; else return 0; } |