summaryrefslogtreecommitdiff
path: root/src/lib/libc/net/res_random.c
diff options
context:
space:
mode:
authorguenther <>2015-10-05 02:57:16 +0000
committerguenther <>2015-10-05 02:57:16 +0000
commitf97ab44d7b0a4185f9d2a463b1362407042c517f (patch)
tree19bc0ad555c1629a8a031c8a4cb1f1ca5c332263 /src/lib/libc/net/res_random.c
parent726014e92eca3a02222ed5d31eebedde1b32b828 (diff)
downloadopenbsd-f97ab44d7b0a4185f9d2a463b1362407042c517f.tar.gz
openbsd-f97ab44d7b0a4185f9d2a463b1362407042c517f.tar.bz2
openbsd-f97ab44d7b0a4185f9d2a463b1362407042c517f.zip
Wrap <resolv.h> so that internal calls go direct
ok millert@
Diffstat (limited to '')
-rw-r--r--src/lib/libc/net/res_random.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/libc/net/res_random.c b/src/lib/libc/net/res_random.c
index 394072c813..72b9c41a2a 100644
--- a/src/lib/libc/net/res_random.c
+++ b/src/lib/libc/net/res_random.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: res_random.c,v 1.22 2015/06/04 19:26:39 eric Exp $ */ 1/* $OpenBSD: res_random.c,v 1.23 2015/10/05 02:57:16 guenther Exp $ */
2 2
3/* 3/*
4 * Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de> 4 * Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de>
@@ -225,7 +225,7 @@ res_initid(void)
225} 225}
226 226
227u_int 227u_int
228res_randomid(void) 228__res_randomid(void)
229{ 229{
230 struct timespec ts; 230 struct timespec ts;
231 pid_t pid; 231 pid_t pid;
@@ -252,6 +252,7 @@ res_randomid(void)
252 252
253 return (r); 253 return (r);
254} 254}
255DEF_STRONG(__res_randomid);
255 256
256#if 0 257#if 0
257int 258int