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/sandpoint Don't use snprintf() to...
details: https://anonhg.NetBSD.org/src/rev/42c5c51d746a
branches: trunk
changeset: 772520:42c5c51d746a
user: riz <riz%NetBSD.org@localhost>
date: Fri Jan 06 20:52:43 2012 +0000
description:
Don't use snprintf() to format, when run_program() will do it nicely on
its own. Suggested by joerg.
diffstat:
distrib/utils/sysinst/arch/sandpoint/md.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diffs (28 lines):
diff -r 0ad1a75405f4 -r 42c5c51d746a distrib/utils/sysinst/arch/sandpoint/md.c
--- a/distrib/utils/sysinst/arch/sandpoint/md.c Fri Jan 06 20:44:57 2012 +0000
+++ b/distrib/utils/sysinst/arch/sandpoint/md.c Fri Jan 06 20:52:43 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: md.c,v 1.37 2011/11/04 11:27:04 martin Exp $ */
+/* $NetBSD: md.c,v 1.38 2012/01/06 20:52:43 riz Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -168,7 +168,6 @@
{
#ifndef DEBUG
int new_speed;
- char sed_cmd[64];
enable_rc_conf();
@@ -187,9 +186,8 @@
new_speed = 0;
if (new_speed != 0) {
- snprintf(sed_cmd, 64, "sed -an -e 's/115200/%d/;H;$!d;g;w"
+ run_program(RUN_CHROOT, "sed -an -e 's/115200/%d/;H;$!d;g;w"
"/etc/ttys' /etc/ttys", new_speed);
- run_program(RUN_CHROOT, sed_cmd);
}
#endif
}
Home |
Main Index |
Thread Index |
Old Index