afs: ubikprocs.c: fix gethostname call (fwd)
Aaron Campbell
aaron at monkey.org
Wed Feb 15 16:37:53 CET 2006
I am going to commit this fix to OpenBSD. Please put it in the main arla
source tree, thanks!
---------- Forwarded message ----------
Date: Sun, 5 Feb 2006 21:17:57 +0300
From: Alexey Dobriyan <adobriyan at gmail.com>
To: bugs at openbsd.org
Subject: afs: ubikprocs.c: fix gethostname call
--- usr.sbin/afs/src/milko/vldb/ubikprocs.c
+++ usr.sbin/afs/src/milko/vldb/ubikprocs.c
@@ -69,7 +69,7 @@ int Ubik_Debug(struct rx_call *call,
struct hostent *he;
struct in_addr tmp;
- if (gethostname (name, sizeof(name) < 0))
+ if (gethostname (name, sizeof(name)) < 0)
return -1;
he = gethostbyname (name);
if (he == NULL)
More information about the Arla-drinkers
mailing list