summaryrefslogtreecommitdiff
path: root/stdio-common
diff options
context:
space:
mode:
Diffstat (limited to 'stdio-common')
-rw-r--r--stdio-common/Makefile2
-rw-r--r--stdio-common/tst-printf.c4
2 files changed, 2 insertions, 4 deletions
diff --git a/stdio-common/Makefile b/stdio-common/Makefile
index e65ff70713..240016c112 100644
--- a/stdio-common/Makefile
+++ b/stdio-common/Makefile
@@ -30,7 +30,7 @@ routines := \
vfscanf \
fscanf scanf sscanf \
perror psignal \
- tmpfile tmpnam tempnam tempname \
+ tmpfile tmpnam tmpnam_r tempnam tempname \
getline getw putw \
remove rename \
lockfile
diff --git a/stdio-common/tst-printf.c b/stdio-common/tst-printf.c
index 65e9dfdd88..87578d397a 100644
--- a/stdio-common/tst-printf.c
+++ b/stdio-common/tst-printf.c
@@ -147,7 +147,7 @@ I am ready for my first lesson today.";
#ifndef BSD
printf("bad format:\t\"%z\"\n");
- printf("nil pointer (padded):\t\"%10p\"\n", (PTR) NULL);
+ printf("nil pointer (padded):\t\"%10p\"\n", (void *) NULL);
#endif
printf("decimal negative:\t\"%d\"\n", -2345);
@@ -272,7 +272,6 @@ rfg1 (void)
sprintf (buf, "%.G", 33.3);
if (strcmp (buf, "3E+01") != 0)
printf ("got: '%s', expected: '%s'\n", buf, "3E+01");
- return 0;
}
void
@@ -309,5 +308,4 @@ rfg2 (void)
sprintf (buf, "%04.*X", prec, 33);
if (strcmp (buf, " 021") != 0)
printf ("got: '%s', expected: '%s'\n", buf, " 021");
- return 0;
}