diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-05-25 10:39:13 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-05-25 10:39:13 +0000 |
commit | 06607b674f434b912cc5840253c376c572f2477e (patch) | |
tree | 4f9722dc870322c49d1de11cd2a30a610189f901 /libc/inet/getproto.c | |
parent | 06135d973dd6fdf749198edd3e38f815ec977cb6 (diff) |
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
Diffstat (limited to 'libc/inet/getproto.c')
-rw-r--r-- | libc/inet/getproto.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/inet/getproto.c b/libc/inet/getproto.c index f28a4cb17..5ee003906 100644 --- a/libc/inet/getproto.c +++ b/libc/inet/getproto.c @@ -83,7 +83,7 @@ __UCLIBC_MUTEX_STATIC(mylock, PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP); static FILE *protof = NULL; static struct protoent proto; static char *static_aliases = NULL; -static int proto_stayopen; +static smallint proto_stayopen; static void __initbuf(void) { @@ -100,7 +100,7 @@ void setprotoent(int f) protof = fopen(_PATH_PROTOCOLS, "r" ); else rewind(protof); - proto_stayopen |= f; + if (f) proto_stayopen = 1; __UCLIBC_MUTEX_UNLOCK(mylock); } libc_hidden_def(setprotoent) |