Rename buf -> tbuf to avoid gcc warnings about the buf defined in dump.h.
authorCraig Leres <leres@ucbvax.Berkeley.EDU>
Fri, 6 Mar 1992 10:04:32 +0000 (02:04 -0800)
committerCraig Leres <leres@ucbvax.Berkeley.EDU>
Fri, 6 Mar 1992 10:04:32 +0000 (02:04 -0800)
SCCS-vsn: sbin/dump/itime.c 5.11

usr/src/sbin/dump/itime.c

index 476d2c6..7cf84a9 100644 (file)
@@ -6,7 +6,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)itime.c    5.10 (Berkeley) %G%";
+static char sccsid[] = "@(#)itime.c    5.11 (Berkeley) %G%";
 #endif /* not lint */
 
 #ifdef sunos
 #endif /* not lint */
 
 #ifdef sunos
@@ -214,13 +214,13 @@ getrecord(df, ddatep)
        FILE *df;
        struct dumpdates *ddatep;
 {
        FILE *df;
        struct dumpdates *ddatep;
 {
-       char buf[BUFSIZ];
+       char tbuf[BUFSIZ];
 
        recno = 0;
 
        recno = 0;
-       if ( (fgets(buf, BUFSIZ, df)) != buf)
+       if ( (fgets(tbuf, BUFSIZ, df)) != tbuf)
                return(-1);
        recno++;
                return(-1);
        recno++;
-       if (makedumpdate(ddatep, buf) < 0)
+       if (makedumpdate(ddatep, tbuf) < 0)
                msg("Unknown intermediate format in %s, line %d\n",
                        dumpdates, recno);
 
                msg("Unknown intermediate format in %s, line %d\n",
                        dumpdates, recno);
 
@@ -234,13 +234,13 @@ getrecord(df, ddatep)
 time_t unctime();
 
 int
 time_t unctime();
 
 int
-makedumpdate(ddp, buf)
+makedumpdate(ddp, tbuf)
        struct dumpdates *ddp;
        struct dumpdates *ddp;
-       char *buf;
+       char *tbuf;
 {
        char un_buf[128];
 
 {
        char un_buf[128];
 
-       sscanf(buf, DUMPINFMT, ddp->dd_name, &ddp->dd_level, un_buf);
+       sscanf(tbuf, DUMPINFMT, ddp->dd_name, &ddp->dd_level, un_buf);
        ddp->dd_ddate = unctime(un_buf);
        if (ddp->dd_ddate < 0)
                return(-1);
        ddp->dd_ddate = unctime(un_buf);
        if (ddp->dd_ddate < 0)
                return(-1);