Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/nfs Don't use the result of inet_ntoa after calling the ...
details: https://anonhg.NetBSD.org/src/rev/45cc68badc71
branches: trunk
changeset: 474913:45cc68badc71
user: enami <enami%NetBSD.org@localhost>
date: Mon Jul 26 02:16:35 1999 +0000
description:
Don't use the result of inet_ntoa after calling the another inet_ntoa,
since they share the same static storage.
diffstat:
sys/nfs/nfs_bootparam.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (20 lines):
diff -r 301fd0767465 -r 45cc68badc71 sys/nfs/nfs_bootparam.c
--- a/sys/nfs/nfs_bootparam.c Mon Jul 26 02:01:47 1999 +0000
+++ b/sys/nfs/nfs_bootparam.c Mon Jul 26 02:16:35 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nfs_bootparam.c,v 1.14 1999/05/07 15:17:26 drochner Exp $ */
+/* $NetBSD: nfs_bootparam.c,v 1.15 1999/07/26 02:16:35 enami Exp $ */
/*-
* Copyright (c) 1995, 1997 The NetBSD Foundation, Inc.
@@ -146,8 +146,8 @@
}
nd->nd_myip.s_addr = my_ip.s_addr;
- printf("nfs_boot: client_addr=%s (RARP from %s)\n",
- inet_ntoa(my_ip), inet_ntoa(arps_ip));
+ printf("nfs_boot: client_addr=%s", inet_ntoa(my_ip));
+ printf(" (RARP from %s)\n", inet_ntoa(arps_ip));
/*
* Do enough of ifconfig(8) so that the chosen interface
Home |
Main Index |
Thread Index |
Old Index