summaryrefslogtreecommitdiff
path: root/libc/inet
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-12-01 09:43:37 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-12-01 09:43:37 +0000
commit94ecebc42368bd20dc671baaf397c136c530d09d (patch)
tree0ff49d2dab95a69bdcd8891be2df5caaab09018d /libc/inet
parent3b1b9d4638f0b92c161453f2896355183296803f (diff)
random: use smaller data fields where appropriate
text data bss dec hex filename - 130 156 0 286 11e libc/stdlib/random.o + 130 148 0 278 116 libc/stdlib/random.o - 586 0 0 586 24a libc/stdlib/random_r.o + 570 0 0 570 23a libc/stdlib/random_r.o
Diffstat (limited to 'libc/inet')
-rw-r--r--libc/inet/resolv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libc/inet/resolv.c b/libc/inet/resolv.c
index 08246e85f..e377c3883 100644
--- a/libc/inet/resolv.c
+++ b/libc/inet/resolv.c
@@ -2783,6 +2783,7 @@ int res_init(void)
#ifdef __UCLIBC_HAS_COMPAT_RES_STATE__
rp->retrans = RES_TIMEOUT;
rp->retry = 4;
+//TODO: pulls in largish static buffers... use simpler one?
rp->id = random();
#endif
rp->ndots = 1;