Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src sweep of errx/warnx, remove unnecessary trailing \n
details: https://anonhg.NetBSD.org/src/rev/46e999d3034b
branches: trunk
changeset: 534208:46e999d3034b
user: grant <grant%NetBSD.org@localhost>
date: Sat Jul 20 08:40:16 2002 +0000
description:
sweep of errx/warnx, remove unnecessary trailing \n
diffstat:
usr.bin/audio/play/play.c | 6 +++---
usr.bin/audio/record/record.c | 18 +++++++++---------
usr.bin/fgen/fgen.l | 4 ++--
usr.bin/xlint/xlint/xlint.c | 6 +++---
usr.sbin/apm/apm.c | 4 ++--
usr.sbin/installboot/arch/alpha.c | 6 +++---
usr.sbin/irdaattach/irdaattach.c | 4 ++--
usr.sbin/lpr/lpc/lpc.c | 6 +++---
usr.sbin/makefs/ffs/ffs_alloc.c | 6 +++---
usr.sbin/mld6query/mld6.c | 6 +++---
usr.sbin/netgroup_mkdb/netgroup_mkdb.c | 8 ++++----
usr.sbin/pcictl/pcictl.c | 4 ++--
usr.sbin/pkg_install/admin/main.c | 8 ++++----
usr.sbin/pkg_install/delete/main.c | 6 +++---
usr.sbin/pkg_install/lib/file.c | 6 +++---
usr.sbin/pkg_install/lib/ftpio.c | 8 ++++----
usr.sbin/quotaon/quotaon.c | 6 +++---
usr.sbin/rbootd/rbootd.c | 6 +++---
usr.sbin/rpc.lockd/test.c | 6 +++---
usr.sbin/sunlabel/sunlabel.c | 10 +++++-----
usr.sbin/trsp/trsp.c | 8 ++++----
usr.sbin/user/user.c | 8 ++++----
usr.sbin/wsmuxctl/wsmuxctl.c | 4 ++--
usr.sbin/yppoll/yppoll.c | 8 ++++----
usr.sbin/ypset/ypset.c | 6 +++---
25 files changed, 84 insertions(+), 84 deletions(-)
diffs (truncated from 734 to 300 lines):
diff -r d18b59e6f97b -r 46e999d3034b usr.bin/audio/play/play.c
--- a/usr.bin/audio/play/play.c Sat Jul 20 08:37:30 2002 +0000
+++ b/usr.bin/audio/play/play.c Sat Jul 20 08:40:16 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: play.c,v 1.36 2002/02/10 13:15:08 mrg Exp $ */
+/* $NetBSD: play.c,v 1.37 2002/07/20 08:40:16 grant Exp $ */
/*
* Copyright (c) 1999 Matthew R. Green
@@ -135,7 +135,7 @@
case 's':
decode_int(optarg, &sample_rate);
if (sample_rate < 0 || sample_rate > 48000 * 2) /* XXX */
- errx(1, "sample rate must be between 0 and 96000\n");
+ errx(1, "sample rate must be between 0 and 96000");
break;
case 'V':
verbose++;
@@ -143,7 +143,7 @@
case 'v':
volume = atoi(optarg);
if (volume < 0 || volume > 255)
- errx(1, "volume must be between 0 and 255\n");
+ errx(1, "volume must be between 0 and 255");
break;
/* case 'h': */
default:
diff -r d18b59e6f97b -r 46e999d3034b usr.bin/audio/record/record.c
--- a/usr.bin/audio/record/record.c Sat Jul 20 08:37:30 2002 +0000
+++ b/usr.bin/audio/record/record.c Sat Jul 20 08:40:16 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: record.c,v 1.29 2002/07/20 07:45:08 mrg Exp $ */
+/* $NetBSD: record.c,v 1.30 2002/07/20 08:40:16 grant Exp $ */
/*
* Copyright (c) 1999 Matthew R. Green
@@ -100,7 +100,7 @@
case 'b':
decode_int(optarg, &balance);
if (balance < 0 || balance > 63)
- errx(1, "balance must be between 0 and 63\n");
+ errx(1, "balance must be between 0 and 63");
break;
case 'C':
/* Ignore, compatibility */
@@ -114,7 +114,7 @@
case 'c':
decode_int(optarg, &channels);
if (channels < 0 || channels > 16)
- errx(1, "channels must be between 0 and 16\n");
+ errx(1, "channels must be between 0 and 16");
break;
case 'd':
device = optarg;
@@ -131,7 +131,7 @@
case 'm':
decode_int(optarg, &monitor_gain);
if (monitor_gain < 0 || monitor_gain > 255)
- errx(1, "monitor volume must be between 0 and 255\n");
+ errx(1, "monitor volume must be between 0 and 255");
break;
case 'P':
decode_int(optarg, &precision);
@@ -160,7 +160,7 @@
case 's':
decode_int(optarg, &sample_rate);
if (sample_rate < 0 || sample_rate > 48000 * 2) /* XXX */
- errx(1, "sample rate must be between 0 and 96000\n");
+ errx(1, "sample rate must be between 0 and 96000");
break;
case 't':
no_time_limit = 0;
@@ -172,7 +172,7 @@
case 'v':
decode_int(optarg, &gain);
if (gain < 0 || gain > 255)
- errx(1, "volume must be between 0 and 255\n");
+ errx(1, "volume must be between 0 and 255");
break;
/* case 'h': */
default:
@@ -512,7 +512,7 @@
static int warned = 0;
if (warned == 0) {
- warnx("can not support precision of %d\n", precision);
+ warnx("can not support precision of %d", precision);
warned = 1;
}
}
@@ -585,9 +585,9 @@
const char *s = wav_enc_from_val(encoding);
if (s == NULL)
- warnx("can not support encoding of %s\n", s);
+ warnx("can not support encoding of %s", s);
else
- warnx("can not support encoding of %d\n", encoding);
+ warnx("can not support encoding of %d", encoding);
warned = 1;
}
}
diff -r d18b59e6f97b -r 46e999d3034b usr.bin/fgen/fgen.l
--- a/usr.bin/fgen/fgen.l Sat Jul 20 08:37:30 2002 +0000
+++ b/usr.bin/fgen/fgen.l Sat Jul 20 08:40:16 2002 +0000
@@ -1,5 +1,5 @@
%{
-/* $NetBSD: fgen.l,v 1.19 2002/06/11 00:04:28 eeh Exp $ */
+/* $NetBSD: fgen.l,v 1.20 2002/07/20 08:40:16 grant Exp $ */
/* FLEX input for FORTH input file scanner */
/*
* Copyright (c) 1998 Eduardo Horvath.
@@ -1013,7 +1013,7 @@
break;
case '?':
default:
- warnx("Illegal argument: %c\n", ch);
+ warnx("Illegal argument: %c", ch);
usage(myname);
}
argc -= optind;
diff -r d18b59e6f97b -r 46e999d3034b usr.bin/xlint/xlint/xlint.c
--- a/usr.bin/xlint/xlint/xlint.c Sat Jul 20 08:37:30 2002 +0000
+++ b/usr.bin/xlint/xlint/xlint.c Sat Jul 20 08:40:16 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: xlint.c,v 1.28 2002/06/14 23:20:42 simonb Exp $ */
+/* $NetBSD: xlint.c,v 1.29 2002/07/20 08:40:17 grant Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved.
@@ -34,7 +34,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: xlint.c,v 1.28 2002/06/14 23:20:42 simonb Exp $");
+__RCSID("$NetBSD: xlint.c,v 1.29 2002/07/20 08:40:17 grant Exp $");
#endif
#include <sys/param.h>
@@ -602,7 +602,7 @@
if (!is_stdin && strcmp(suff, "c") != 0 &&
(strncmp(bn, "llib-l", 6) != 0 || bn != suff)) {
- warnx("unknown file type: %s\n", name);
+ warnx("unknown file type: %s", name);
return;
}
diff -r d18b59e6f97b -r 46e999d3034b usr.sbin/apm/apm.c
--- a/usr.sbin/apm/apm.c Sat Jul 20 08:37:30 2002 +0000
+++ b/usr.sbin/apm/apm.c Sat Jul 20 08:40:16 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: apm.c,v 1.12 2001/09/13 11:05:58 enami Exp $ */
+/* $NetBSD: apm.c,v 1.13 2002/07/20 08:40:17 grant Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -335,7 +335,7 @@
break;
}
} else
- errx(rval, "cannot get reply from APM daemon\n");
+ errx(rval, "cannot get reply from APM daemon");
exit(0);
}
diff -r d18b59e6f97b -r 46e999d3034b usr.sbin/installboot/arch/alpha.c
--- a/usr.sbin/installboot/arch/alpha.c Sat Jul 20 08:37:30 2002 +0000
+++ b/usr.sbin/installboot/arch/alpha.c Sat Jul 20 08:40:16 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: alpha.c,v 1.12 2002/05/31 05:54:36 matt Exp $ */
+/* $NetBSD: alpha.c,v 1.13 2002/07/20 08:40:17 grant Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -98,7 +98,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID) && !defined(__lint)
-__RCSID("$NetBSD: alpha.c,v 1.12 2002/05/31 05:54:36 matt Exp $");
+__RCSID("$NetBSD: alpha.c,v 1.13 2002/07/20 08:40:17 grant Exp $");
#endif /* !__lint */
#if HAVE_CONFIG_H
@@ -174,7 +174,7 @@
"Old boot block checksum invalid (was %#llx, calculated %#llx)",
(unsigned long long)bb.bb_cksum,
(unsigned long long)cksum);
- warnx("Boot block invalid\n");
+ warnx("Boot block invalid");
return (0);
}
diff -r d18b59e6f97b -r 46e999d3034b usr.sbin/irdaattach/irdaattach.c
--- a/usr.sbin/irdaattach/irdaattach.c Sat Jul 20 08:37:30 2002 +0000
+++ b/usr.sbin/irdaattach/irdaattach.c Sat Jul 20 08:40:16 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: irdaattach.c,v 1.3 2001/12/14 20:10:19 thorpej Exp $ */
+/* $NetBSD: irdaattach.c,v 1.4 2002/07/20 08:40:17 grant Exp $ */
/*
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -150,7 +150,7 @@
else if (strcmp(donglename, "girbil") == 0)
dongle = DONGLE_GIRBIL;
else
- errx(1, "Unknown dongle\n");
+ errx(1, "Unknown dongle");
if (ioctl(fd, IRFRAMETTY_SET_DONGLE, &dongle) < 0)
err(1, "IRFRAMETTY_SET_DONGLE");
diff -r d18b59e6f97b -r 46e999d3034b usr.sbin/lpr/lpc/lpc.c
--- a/usr.sbin/lpr/lpc/lpc.c Sat Jul 20 08:37:30 2002 +0000
+++ b/usr.sbin/lpr/lpc/lpc.c Sat Jul 20 08:40:16 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lpc.c,v 1.13 2002/07/14 15:27:59 wiz Exp $ */
+/* $NetBSD: lpc.c,v 1.14 2002/07/20 08:40:18 grant Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)lpc.c 8.3 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: lpc.c,v 1.13 2002/07/14 15:27:59 wiz Exp $");
+__RCSID("$NetBSD: lpc.c,v 1.14 2002/07/20 08:40:18 grant Exp $");
#endif
#endif /* not lint */
@@ -301,7 +301,7 @@
if (gptr == NULL) {
if ((gptr = getgrnam(grname)) == NULL) {
- warnx("Warning: unknown group `%s'\n",
+ warnx("Warning: unknown group `%s'",
grname);
return(0);
}
diff -r d18b59e6f97b -r 46e999d3034b usr.sbin/makefs/ffs/ffs_alloc.c
--- a/usr.sbin/makefs/ffs/ffs_alloc.c Sat Jul 20 08:37:30 2002 +0000
+++ b/usr.sbin/makefs/ffs/ffs_alloc.c Sat Jul 20 08:40:16 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ffs_alloc.c,v 1.9 2002/02/06 15:36:30 lukem Exp $ */
+/* $NetBSD: ffs_alloc.c,v 1.10 2002/07/20 08:40:18 grant Exp $ */
/* From: NetBSD: ffs_alloc.c,v 1.50 2001/09/06 02:16:01 lukem Exp */
/*
@@ -38,7 +38,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID) && !defined(__lint)
-__RCSID("$NetBSD: ffs_alloc.c,v 1.9 2002/02/06 15:36:30 lukem Exp $");
+__RCSID("$NetBSD: ffs_alloc.c,v 1.10 2002/07/20 08:40:18 grant Exp $");
#endif /* !__lint */
#include <sys/param.h>
@@ -485,7 +485,7 @@
}
cg = dtog(fs, bno);
if ((u_int)bno >= fs->fs_size) {
- warnx("bad block %d, ino %d\n", bno, ip->i_number);
+ warnx("bad block %d, ino %d", bno, ip->i_number);
return;
}
error = bread(ip->i_fd, ip->i_fs, fsbtodb(fs, cgtod(fs, cg)),
diff -r d18b59e6f97b -r 46e999d3034b usr.sbin/mld6query/mld6.c
--- a/usr.sbin/mld6query/mld6.c Sat Jul 20 08:37:30 2002 +0000
+++ b/usr.sbin/mld6query/mld6.c Sat Jul 20 08:40:16 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mld6.c,v 1.4 2001/05/07 14:00:22 kleink Exp $ */
+/* $NetBSD: mld6.c,v 1.5 2002/07/20 08:40:18 grant Exp $ */
/* $KAME: mld6.c,v 1.9 2000/12/04 06:29:37 itojun Exp $ */
/*
@@ -234,12 +234,12 @@
errx(1, "inet6_opt_finish(buf) failed");
#else /* old advanced API */
if (inet6_option_init((void *)cmsgp, &cmsgp, IPV6_HOPOPTS))
- errx(1, "inet6_option_init failed\n");
+ errx(1, "inet6_option_init failed");
raopt[0] = IP6OPT_RTALERT;
raopt[1] = IP6OPT_RTALERT_LEN - 2;
memcpy(&raopt[2], (caddr_t)&rtalert_code, sizeof(u_short));
if (inet6_option_append(cmsgp, raopt, 4, 0))
- errx(1, "inet6_option_append failed\n");
+ errx(1, "inet6_option_append failed");
#endif
}
diff -r d18b59e6f97b -r 46e999d3034b usr.sbin/netgroup_mkdb/netgroup_mkdb.c
--- a/usr.sbin/netgroup_mkdb/netgroup_mkdb.c Sat Jul 20 08:37:30 2002 +0000
+++ b/usr.sbin/netgroup_mkdb/netgroup_mkdb.c Sat Jul 20 08:40:16 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: netgroup_mkdb.c,v 1.11 2001/02/19 23:22:45 cgd Exp $ */
+/* $NetBSD: netgroup_mkdb.c,v 1.12 2002/07/20 08:40:18 grant Exp $ */
/*
* Copyright (c) 1994 Christos Zoulas
@@ -32,7 +32,7 @@
*/
Home |
Main Index |
Thread Index |
Old Index