diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2000-07-20 01:41:14 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2000-07-20 01:41:14 +0000 |
commit | 3dc6d2b7b2aa9826763759e522e39385dda07520 (patch) | |
tree | d355e7c5f8df66cbe2b129f34a890b5d69daf112 /usr.sbin/rmt/rmt.c | |
parent | 0e8cb05b1258d26f9a817743c0eb95813b983f09 (diff) |
add openbsd tag, fix cpp warning about SSIZE redefinition
Diffstat (limited to 'usr.sbin/rmt/rmt.c')
-rw-r--r-- | usr.sbin/rmt/rmt.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/usr.sbin/rmt/rmt.c b/usr.sbin/rmt/rmt.c index f5f21b1d47c..ec706e35fa6 100644 --- a/usr.sbin/rmt/rmt.c +++ b/usr.sbin/rmt/rmt.c @@ -1,3 +1,5 @@ +/* $OpenBSD: rmt.c,v 1.6 2000/07/20 01:41:13 jason Exp $ */ + /* * Copyright (c) 1983 Regents of the University of California. * All rights reserved. @@ -39,7 +41,7 @@ char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)rmt.c 5.6 (Berkeley) 6/1/90";*/ -static char rcsid[] = "$Id: rmt.c,v 1.5 1998/06/03 07:48:27 deraadt Exp $"; +static char rcsid[] = "$Id: rmt.c,v 1.6 2000/07/20 01:41:13 jason Exp $"; #endif /* not lint */ /* @@ -62,9 +64,9 @@ int tape = -1; char *record; int maxrecsize = -1; -#define SSIZE 64 -char device[SSIZE]; -char count[SSIZE], mode[SSIZE], pos[SSIZE], op[SSIZE]; +#define STRSIZE 64 +char device[STRSIZE]; +char count[STRSIZE], mode[STRSIZE], pos[STRSIZE], op[STRSIZE]; char resp[BUFSIZ]; @@ -203,7 +205,7 @@ getstring(bp) int i; char *cp = bp; - for (i = 0; i < SSIZE; i++) { + for (i = 0; i < STRSIZE; i++) { if (read(0, cp+i, 1) != 1) exit(0); if (cp[i] == '\n') |