Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/utils/sysinst/arch/acorn32 fix fprintfs with no form...
details: https://anonhg.NetBSD.org/src/rev/d3d55d81b1be
branches: trunk
changeset: 769557:d3d55d81b1be
user: christos <christos%NetBSD.org@localhost>
date: Wed Sep 14 12:35:19 2011 +0000
description:
fix fprintfs with no format strings.
diffstat:
distrib/utils/sysinst/arch/acorn32/md.c | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diffs (47 lines):
diff -r 21931929bf15 -r d3d55d81b1be distrib/utils/sysinst/arch/acorn32/md.c
--- a/distrib/utils/sysinst/arch/acorn32/md.c Wed Sep 14 12:30:20 2011 +0000
+++ b/distrib/utils/sysinst/arch/acorn32/md.c Wed Sep 14 12:35:19 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: md.c,v 1.27 2011/04/04 08:30:15 mbalmer Exp $ */
+/* $NetBSD: md.c,v 1.28 2011/09/14 12:35:19 christos Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -96,7 +96,7 @@
if (lseek(fd, (off_t)FILECORE_BOOT_SECTOR * DEV_BSIZE, SEEK_SET) < 0
|| read(fd, bb, sizeof(bb)) - sizeof(bb) != 0) {
endwin();
- fprintf(stderr, msg_string(MSG_badreadbb));
+ fprintf(stderr, "%s", msg_string(MSG_badreadbb));
close(fd);
exit(1);
}
@@ -129,7 +129,8 @@
if (lseek(fd, (off_t)offset * DEV_BSIZE, SEEK_SET) < 0
|| read(fd, bb, sizeof(bb)) - sizeof(bb) != 0) {
endwin();
- fprintf(stderr, msg_string(MSG_badreadriscix));
+ fprintf(stderr, "%s",
+ msg_string(MSG_badreadriscix));
close(fd);
exit(1);
}
@@ -151,7 +152,8 @@
* leave this disc alone.
*/
endwin();
- fprintf(stderr, msg_string(MSG_notnetbsdriscix));
+ fprintf(stderr, "%s",
+ msg_string(MSG_notnetbsdriscix));
close(fd);
exit(1);
}
@@ -164,7 +166,7 @@
* the filecore boot block first with dd.
*/
endwin();
- fprintf(stderr, msg_string(MSG_notnetbsd));
+ fprintf(stderr, "%s", msg_string(MSG_notnetbsd));
close(fd);
exit(1);
}
Home |
Main Index |
Thread Index |
Old Index