OSDN Git Service

Some cleanups from Manuel Novoa III <mnovoa3@bellsouth.net>,
authorEric Andersen <andersen@codepoet.org>
Fri, 17 Nov 2000 17:09:06 +0000 (17:09 -0000)
committerEric Andersen <andersen@codepoet.org>
Fri, 17 Nov 2000 17:09:06 +0000 (17:09 -0000)
and a bit of extra cleanup in the test makefiles.

libc/stdio/scanf.c
libc/stdio/stdio.c
libc/sysdeps/linux/common/Makefile
test/stdlib/Makefile
test/string/Makefile

index 51d30cd..2962125 100644 (file)
@@ -201,15 +201,16 @@ va_list ap;
                        strcpy(delim, "\011\012\013\014\015 ");
                        strcpy(digits, "0123456789ABCDEF");
 
-                       if (fmt[1] == '*') {
+                       if (*++fmt == '*') {
                                endnull = store = 0;
                                ++fmt;
                        }
 
-                       while (isdigit(*++fmt)) {       /* width digit(s) */
+                       while (isdigit(*fmt)) { /* width digit(s) */
                                if (width == -1)
                                        width = 0;
                                wide1 = width = (width * 10) + (*fmt - '0');
+                               ++fmt;
                        }
                        --fmt;
                  fmtnxt:
index 6c8c693..367f3f9 100644 (file)
@@ -609,6 +609,8 @@ const char *mode;
        int fopen_mode = 0;
        FILE *nfp = 0;
 
+       Inline_init;
+
        /* If we've got an fp close the old one (freopen) */
        if (fp) {
                /* Careful, don't de-allocate it */
index 03a4603..5be38fd 100644 (file)
@@ -26,10 +26,10 @@ include $(TOPDIR)Rules.mak
 LIBC=$(TOPDIR)libc.a
 
 
-CSRC =closedir.o dirfd.o getdents.o getdnnm.o gethstnm.o getpagesize.o \
-       isatty.o kernel_version.o mkfifo.o opendir.o readdir.o rewinddir.o \
-       seekdir.o setegid.o seteuid.o setpgrp.o statfix.o tell.o telldir.o \
-       wait.o wait3.o _xmknod.o _fxstat.o _lxstat.o _xstat.o libc_init.o tcgetatr.o
+CSRC =closedir.c dirfd.c getdents.c getdnnm.c gethstnm.c getpagesize.c \
+       isatty.c kernel_version.c mkfifo.c opendir.c readdir.c rewinddir.c \
+       seekdir.c setegid.c seteuid.c setpgrp.c statfix.c tell.c telldir.c \
+       wait.c wait3.c _xmknod.c _fxstat.c _lxstat.c _xstat.c libc_init.c tcgetatr.c
 COBJS=$(patsubst %.c,%.o, $(CSRC))
 
 
index 86c9e88..3d96668 100644 (file)
@@ -121,6 +121,6 @@ teststrtol_diff: teststrtol_glibc teststrtol
        -@ echo " "
 
 clean:
-       rm -f *.[oa] *~ core $(TARGETS)
+       rm -f *.[oa] *~ core $(TARGETS) teststrtol_glibc.out teststrtol.out
 
 
index 7d2a02b..c689968 100644 (file)
@@ -73,6 +73,6 @@ testcopy_diff: testcopy testcopy_glibc
 
 
 clean:
-       rm -f *.[oa] *~ core $(TARGETS)
+       rm -f *.[oa] *~ core $(TARGETS) testcopy.gnu.out testcopy.out