Page MenuHomeFreeBSD

D36830.diff
No OneTemporary

D36830.diff

diff --git a/usr.bin/rs/rs.c b/usr.bin/rs/rs.c
--- a/usr.bin/rs/rs.c
+++ b/usr.bin/rs/rs.c
@@ -29,25 +29,12 @@
* SUCH DAMAGE.
*/
-#ifndef lint
-static const char copyright[] =
-"@(#) Copyright (c) 1993\n\
- The Regents of the University of California. All rights reserved.\n";
-#endif /* not lint */
-
-#ifndef lint
-static const char sccsid[] = "@(#)rs.c 8.1 (Berkeley) 6/6/93";
-#endif /* not lint */
-
/*
* rs - reshape a data array
* Author: John Kunze, Office of Comp. Affairs, UCB
* BEWARE: lots of unfinished edges
*/
-#include <sys/cdefs.h>
-__FBSDID("$FreeBSD$");
-
#include <err.h>
#include <ctype.h>
#include <limits.h>
@@ -402,11 +389,13 @@
switch (*p) {
case 'T':
flags |= MTRANSPOSE;
+ /* FALLTHROUGH */
case 't':
flags |= TRANSPOSE;
break;
case 'c': /* input col. separator */
flags |= ONEISEPONLY;
+ /* FALLTHROUGH */
case 's': /* one or more allowed */
if (p[1])
isep = *++p;
@@ -415,6 +404,7 @@
break;
case 'C':
flags |= ONEOSEPONLY;
+ /* FALLTHROUGH */
case 'S':
if (p[1])
osep = *++p;
@@ -428,6 +418,7 @@
break;
case 'K': /* skip N lines */
flags |= SKIPPRINT;
+ /* FALLTHROUGH */
case 'k': /* skip, do not print */
p = getnum(&skip, p, 0);
if (!skip)
@@ -459,6 +450,7 @@
break;
case 'H': /* print shape only */
flags |= DETAILSHAPE;
+ /* FALLTHROUGH */
case 'h':
flags |= SHAPEONLY;
break;
@@ -485,14 +477,19 @@
/*if (!osep)
osep = isep;*/
switch (ac) {
- /*case 3:
- opages = atoi(av[2]);*/
+#if 0
+ case 3:
+ opages = atoi(av[2]);
+ /* FALLTHROUGH */
+#endif
case 2:
if ((ocols = atoi(av[1])) < 0)
ocols = 0;
+ /* FALLTHROUGH */
case 1:
if ((orows = atoi(av[0])) < 0)
orows = 0;
+ /* FALLTHROUGH */
case 0:
break;
default:

File Metadata

Mime Type
text/plain
Expires
Tue, Aug 18, 3:01 AM (55 m, 36 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36883081
Default Alt Text
D36830.diff (1 KB)

Event Timeline