]> git.saurik.com Git - apple/system_cmds.git/blobdiff - zdump.tproj/zdump.c
system_cmds-735.tar.gz
[apple/system_cmds.git] / zdump.tproj / zdump.c
index 6779ea1941ac00783628ece7c347cfe2959d0218..7068cdfd73107d5083e11db87035671456c42908 100644 (file)
@@ -1,7 +1,8 @@
 static const char      elsieid[] = "@(#)zdump.c        7.31";
 
 #ifndef lint
-static const char rcsid[] =
+#include <sys/cdefs.h>
+__unused static const char rcsid[] =
   "$FreeBSD: src/usr.sbin/zic/zdump.c,v 1.10 2008/02/19 07:09:19 ru Exp $";
 #endif /* not lint */
 
@@ -135,16 +136,14 @@ static void       show P((char * zone, time_t t, int v));
 static void     usage(void);
 
 int
-main(argc, argv)
-int    argc;
-char * argv[];
+main(int argc, char *argv[])
 {
-       register int            i;
-       register int            c;
-       register int            vflag;
-       register char *         cutoff;
-       register int            cutyear;
-       register long           cuttime;
+       int                     i;
+       int                     c;
+       int                     vflag;
+       char *                  cutoff;
+       int                     cutyear;
+       long                    cuttime;
        char **                 fakeenv;
        time_t                  now;
        time_t                  t;
@@ -203,8 +202,8 @@ char *      argv[];
                continue;
 #endif
        {
-               register int    from;
-               register int    to;
+               int     from;
+               int     to;
 
                for (i = 0;  environ[i] != NULL;  ++i)
                        continue;
@@ -304,10 +303,7 @@ _("usage: zdump [--version] [-v] [-c cutoff] zonename ...\n"));
 }
 
 static time_t
-hunt(name, lot, hit)
-char * name;
-time_t lot;
-time_t hit;
+hunt(char *name, time_t lot, time_t hit)
 {
        time_t          t;
        struct tm       lotm;
@@ -340,9 +336,7 @@ time_t      hit;
 */
 
 static long
-delta(newp, oldp)
-struct tm *    newp;
-struct tm *    oldp;
+delta(struct tm *newp, struct tm *oldp)
 {
        long    result;
        int     tmy;
@@ -363,10 +357,7 @@ struct tm *        oldp;
 }
 
 static void
-show(zone, t, v)
-char * zone;
-time_t t;
-int    v;
+show(char *zone, time_t t, int v)
 {
        struct tm *     tmp;
 
@@ -387,10 +378,9 @@ int        v;
 }
 
 static char *
-abbr(tmp)
-struct tm *    tmp;
+abbr(struct tm *tmp)
 {
-       register char * result;
+       char *          result;
        static char     nada;
 
        if (tmp->tm_isdst != 0 && tmp->tm_isdst != 1)