From 147526abfe45328fc049f46f9d52de5c128dbc68 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sat, 1 Nov 2008 23:15:48 +0000 Subject: 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 --- libc/misc/mntent/mntent.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libc/misc') 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; -- cgit v1.2.3