summaryrefslogtreecommitdiffstats
path: root/usr.sbin/zic/zic.c
diff options
context:
space:
mode:
authordd <dd@FreeBSD.org>2001-07-18 11:27:04 +0000
committerdd <dd@FreeBSD.org>2001-07-18 11:27:04 +0000
commit089ab7990ef057463a3fe5c0001e14b8d8cdf971 (patch)
tree0098027ff4230f0d439fbd0e35deeb5133f17fc3 /usr.sbin/zic/zic.c
parentf24cad11ffba09a2fd48e40e9afb8b7f7453033c (diff)
downloadFreeBSD-src-089ab7990ef057463a3fe5c0001e14b8d8cdf971.zip
FreeBSD-src-089ab7990ef057463a3fe5c0001e14b8d8cdf971.tar.gz
Back out WARNS cleanup: this is apparently vendor code, even though
most of the files aren't on the vendor branch. Submitted by: wollman
Diffstat (limited to 'usr.sbin/zic/zic.c')
-rw-r--r--usr.sbin/zic/zic.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/usr.sbin/zic/zic.c b/usr.sbin/zic/zic.c
index 1d50a7f..109b978 100644
--- a/usr.sbin/zic/zic.c
+++ b/usr.sbin/zic/zic.c
@@ -89,7 +89,6 @@ 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));
@@ -130,7 +129,6 @@ 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));
@@ -1362,14 +1360,12 @@ FILE * const fp;
static int
atcomp(avp, bvp)
-const void * avp;
-const void * bvp;
+void * avp;
+void * bvp;
{
- if (((const struct attype *) avp)->at <
- ((const struct attype *) bvp)->at)
+ if (((struct attype *) avp)->at < ((struct attype *) bvp)->at)
return -1;
- else if (((const struct attype *) avp)->at >
- ((const struct attype *) bvp)->at)
+ else if (((struct attype *) avp)->at > ((struct attype *) bvp)->at)
return 1;
else return 0;
}
OpenPOWER on IntegriCloud