summaryrefslogtreecommitdiff
path: root/libc/inet/getnetent.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-05-25 10:39:13 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-05-25 10:39:13 +0000
commit06607b674f434b912cc5840253c376c572f2477e (patch)
tree4f9722dc870322c49d1de11cd2a30a610189f901 /libc/inet/getnetent.c
parent06135d973dd6fdf749198edd3e38f815ec977cb6 (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/getnetent.c')
-rw-r--r--libc/inet/getnetent.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/inet/getnetent.c b/libc/inet/getnetent.c
index eacfd709d..b22cc2a5c 100644
--- a/libc/inet/getnetent.c
+++ b/libc/inet/getnetent.c
@@ -39,7 +39,7 @@ static const char NETDB[] = _PATH_NETWORKS;
static FILE *netf = NULL;
-int _net_stayopen attribute_hidden;
+smallint _net_stayopen attribute_hidden;
libc_hidden_proto(setnetent)
void setnetent(int f)
@@ -49,7 +49,7 @@ void setnetent(int f)
netf = fopen(NETDB, "r" );
else
rewind(netf);
- _net_stayopen |= f;
+ if (f) _net_stayopen = 1;
__UCLIBC_MUTEX_UNLOCK(mylock);
return;
}