summaryrefslogtreecommitdiff
path: root/libc/misc
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-11-01 23:15:48 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-11-01 23:15:48 +0000
commit147526abfe45328fc049f46f9d52de5c128dbc68 (patch)
tree767f099fa5bd0dbeb6bf3f634007067858d0bb5d /libc/misc
parent3c6ef7d7b46d963bbfbd025abec2e4b038a30765 (diff)
trivial code shrink by making some strings static
text data bss dec hex filename - 259 0 0 259 103 libc/inet/herror.o + 243 0 0 243 f3 libc/inet/herror.o - 720 0 0 720 2d0 libc/inet/ns_name.o + 710 0 0 710 2c6 libc/inet/ns_name.o
Diffstat (limited to 'libc/misc')
-rw-r--r--libc/misc/mntent/mntent.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/misc/mntent/mntent.c b/libc/misc/mntent/mntent.c
index f4220784a..4d23aef00 100644
--- a/libc/misc/mntent/mntent.c
+++ b/libc/misc/mntent/mntent.c
@@ -30,8 +30,9 @@ libc_hidden_proto(fprintf)
struct mntent *getmntent_r (FILE *filep,
struct mntent *mnt, char *buff, int bufsize)
{
+ static const char sep[] = " \t\n";
+
char *cp, *ptrptr;
- const char *sep = " \t\n";
if (!filep || !mnt || !buff)
return NULL;