aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2003-12-08 01:44:27 +0000
committerH. Peter Anvin <hpa@zytor.com>2003-12-08 01:44:27 +0000
commit17ad9c6d7879ef4ff20dbcd96af96a67ca98d400 (patch)
tree78dd014f2c1e16473332be75f326935a89e920a0
parent6798b7a2fb43c03a04ce31c9cc82200cbe25ec68 (diff)
downloadklibc-17ad9c6d7879ef4ff20dbcd96af96a67ca98d400.tar.gz
Don't define ntoa() unless we're debuggingklibc-0.91
-rw-r--r--ipconfig/packet.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ipconfig/packet.c b/ipconfig/packet.c
index aaeafb4f0648c..277d2b9cf9874 100644
--- a/ipconfig/packet.c
+++ b/ipconfig/packet.c
@@ -99,11 +99,13 @@ static struct header ipudp_hdrs = {
},
};
+#ifdef IPC_DEBUG /* Only used by DEBUG(()) */
static char *ntoa(__u32 addr)
{
struct in_addr in = { addr };
return inet_ntoa(in);
}
+#endif
/*
* Send a packet. The options are listed in iov[1...iov_len].