projects
/
musl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 2:
bfda379
)
Merge remote-tracking branch 'nsz/review'
author
Rich Felker
<dalias@aerifal.cx>
Sat, 18 May 2013 16:06:42 +0000
(12:06 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Sat, 18 May 2013 16:06:42 +0000
(12:06 -0400)
src/legacy/err.c
patch
|
blob
|
history
diff --git
a/src/legacy/err.c
b/src/legacy/err.c
index
0f74853
..
7b167b3
100644
(file)
--- a/
src/legacy/err.c
+++ b/
src/legacy/err.c
@@
-3,14
+3,18
@@
#include <stdarg.h>
#include <stdlib.h>
+extern char *__progname;
+
void vwarn(const char *fmt, va_list ap)
{
+ fprintf (stderr, "%s: ", __progname);
if (fmt) vfprintf(stderr, fmt, ap);
perror("");
}
void vwarnx(const char *fmt, va_list ap)
{
+ fprintf (stderr, "%s: ", __progname);
if (fmt) vfprintf(stderr, fmt, ap);
putc('\n', stderr);
}