afs: ubikprocs.c: fix gethostname call (fwd)
Aaron Campbell <[email protected]>
| Newsgroups | gmane.comp.file-systems.arla.general |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]> To: [email protected] 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)