Module Name: src
Committed By: joerg
Date: Mon May 30 14:20:20 UTC 2011
Modified Files:
src/distrib/utils/sysinst: run.c
Log Message:
Declare mmsg as string constant, not as a pointer to a string constant.
This avoids format strings warnings.
To generate a diff of this commit:
cvs rdiff -u -r1.66 -r1.67 src/distrib/utils/sysinst/run.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/distrib/utils/sysinst/run.c
diff -u src/distrib/utils/sysinst/run.c:1.66 src/distrib/utils/sysinst/run.c:1.67
--- src/distrib/utils/sysinst/run.c:1.66 Mon Apr 4 08:30:13 2011
+++ src/distrib/utils/sysinst/run.c Mon May 30 14:20:19 2011
@@ -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);