summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>1998-07-30 20:54:47 +0000
committerPaul Smith <psmith@gnu.org>1998-07-30 20:54:47 +0000
commite2403327e9913bbcbd515f9c38b8f4e26fb9b0d9 (patch)
tree8ac64ff471e0a976daf75ef913c084adba4972fc /misc.c
parent65a7296e2c81b04761b3f024572310a02c9de691 (diff)
downloadgunmake-e2403327e9913bbcbd515f9c38b8f4e26fb9b0d9.tar.gz
GNU make release 3.77.
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/misc.c b/misc.c
index dbbe41f..1411e54 100644
--- a/misc.c
+++ b/misc.c
@@ -253,6 +253,9 @@ makefile_fatal (file, lineno, s1, s2, s3, s4, s5, s6)
unsigned int lineno;
char *s1, *s2, *s3, *s4, *s5, *s6;
{
+ if (!file)
+ fatal(s1, s2, s3, s4, s5, s6);
+
log_working_directory (1);
fprintf (stderr, "%s:%u: *** ", file, lineno);
@@ -470,7 +473,7 @@ copy_dep_chain (d)
{
register struct dep *c;
struct dep *firstnew = 0;
- struct dep *lastnew;
+ struct dep *lastnew = 0;
while (d != 0)
{
@@ -564,8 +567,9 @@ log_access (flavor)
but we write this one to stderr because it might be
run in a child fork whose stdout is piped. */
- fprintf (stderr, "%s access: user %d (real %d), group %d (real %d)\n",
- flavor, geteuid (), getuid (), getegid (), getgid ());
+ fprintf (stderr, "%s access: user %lu (real %lu), group %lu (real %lu)\n",
+ flavor, (unsigned long) geteuid (), (unsigned long) getuid (),
+ (unsigned long) getegid (), (unsigned long) getgid ());
fflush (stderr);
}