Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/utils/sysinst Declare mmsg as string constant, not a...
details: https://anonhg.NetBSD.org/src/rev/fa3dcd33ee9e
branches: trunk
changeset: 765555:fa3dcd33ee9e
user: joerg <joerg%NetBSD.org@localhost>
date: Mon May 30 14:20:19 2011 +0000
description:
Declare mmsg as string constant, not as a pointer to a string constant.
This avoids format strings warnings.
diffstat:
distrib/utils/sysinst/run.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r d5600df8e34c -r fa3dcd33ee9e distrib/utils/sysinst/run.c
--- a/distrib/utils/sysinst/run.c Mon May 30 13:58:23 2011 +0000
+++ b/distrib/utils/sysinst/run.c Mon May 30 14:20:19 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: run.c,v 1.66 2011/04/04 08:30:13 mbalmer Exp $ */
+/* $NetBSD: run.c,v 1.67 2011/05/30 14:20:19 joerg Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -482,7 +482,7 @@
for (selectfailed = 0;;) {
if (selectfailed) {
- const char *mmsg = "select(2) failed but no child died?";
+ const char mmsg[] = "select(2) failed but no child died?";
if (logging)
(void)fprintf(logfp, mmsg);
errx(1, mmsg);
Home |
Main Index |
Thread Index |
Old Index