From 06607b674f434b912cc5840253c376c572f2477e Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sun, 25 May 2008 10:39:13 +0000 Subject: Slight size reduction by use of smallints/consts: - 288016 1924 7176 297116 4889c libuClibc-0.9.29.so + 287956 1924 7168 297048 48858 libuClibc-0.9.29.so --- libc/inet/getservice.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libc/inet/getservice.c') diff --git a/libc/inet/getservice.c b/libc/inet/getservice.c index e2a158cba..98bbc7cc5 100644 --- a/libc/inet/getservice.c +++ b/libc/inet/getservice.c @@ -86,7 +86,7 @@ __UCLIBC_MUTEX_STATIC(mylock, PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP); static FILE *servf = NULL; static struct servent serv; static char *servbuf = NULL; -static int serv_stayopen; +static smallint serv_stayopen; static void __initbuf(void) { @@ -103,7 +103,7 @@ void setservent(int f) servf = fopen(_PATH_SERVICES, "r" ); else rewind(servf); - serv_stayopen |= f; + if (f) serv_stayopen = 1; __UCLIBC_MUTEX_UNLOCK(mylock); } libc_hidden_def(setservent) -- cgit v1.2.3