Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/split sort option blocks; no functional change
details: https://anonhg.NetBSD.org/src/rev/b5e68c437b05
branches: trunk
changeset: 373492:b5e68c437b05
user: jschauma <jschauma%NetBSD.org@localhost>
date: Sun Feb 12 20:43:21 2023 +0000
description:
sort option blocks; no functional change
diffstat:
usr.bin/split/split.c | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
diffs (46 lines):
diff -r d9ae5813eaf2 -r b5e68c437b05 usr.bin/split/split.c
--- a/usr.bin/split/split.c Sun Feb 12 20:14:32 2023 +0000
+++ b/usr.bin/split/split.c Sun Feb 12 20:43:21 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: split.c,v 1.29 2023/01/30 15:22:02 jschauma Exp $ */
+/* $NetBSD: split.c,v 1.30 2023/02/12 20:43:21 jschauma Exp $ */
/*
* Copyright (c) 1987, 1993, 1994
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)split.c 8.3 (Berkeley) 4/25/94";
#endif
-__RCSID("$NetBSD: split.c,v 1.29 2023/01/30 15:22:02 jschauma Exp $");
+__RCSID("$NetBSD: split.c,v 1.30 2023/02/12 20:43:21 jschauma Exp $");
#endif /* not lint */
#include <sys/param.h>
@@ -98,6 +98,13 @@
errx(1, "%s: illegal line count.", p);
}
break;
+ case 'a': /* Suffix length. */
+ if (!isdigit((unsigned char)optarg[0]) ||
+ (sfxlen = (size_t)strtoul(optarg, &ep, 10)) == 0 ||
+ *ep != '\0')
+ errx(1, "%s: illegal suffix length.", optarg);
+ autosfx = 0;
+ break;
case 'b': /* Byte count. */
if (!isdigit((unsigned char)optarg[0]) ||
(bytecnt = strtoull(optarg, &ep, 10)) == 0 ||
@@ -116,13 +123,6 @@
*ep != '\0')
errx(1, "%s: illegal line count.", optarg);
break;
- case 'a': /* Suffix length. */
- if (!isdigit((unsigned char)optarg[0]) ||
- (sfxlen = (size_t)strtoul(optarg, &ep, 10)) == 0 ||
- *ep != '\0')
- errx(1, "%s: illegal suffix length.", optarg);
- autosfx = 0;
- break;
case 'n': /* Chunks. */
if (!isdigit((unsigned char)optarg[0]) ||
(chunks = (size_t)strtoul(optarg, &ep, 10)) == 0 ||
Home |
Main Index |
Thread Index |
Old Index