From 9052b52dfc69d9567e2e664b0f096bfae535bcad Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Fri, 10 May 2002 03:15:07 +0000 Subject: Fix Debian bug #144306: pass target-specific variables into the environment properly. Fix configure: allow cross-compilation; fix getloadavg (still needs _lots_ of work!) Let $(call ...) functions to be self-referencing. Lets us do transitive closures, for example. --- misc.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'misc.c') diff --git a/misc.c b/misc.c index 04f1617..868d3bc 100644 --- a/misc.c +++ b/misc.c @@ -173,7 +173,7 @@ remove_comments (line) void print_spaces (n) - register unsigned int n; + unsigned int n; { while (n-- > 0) putchar (' '); @@ -185,10 +185,10 @@ print_spaces (n) char * concat (s1, s2, s3) - register char *s1, *s2, *s3; + const char *s1, *s2, *s3; { - register unsigned int len1, len2, len3; - register char *result; + unsigned int len1, len2, len3; + char *result; len1 = *s1 != '\0' ? strlen (s1) : 0; len2 = *s2 != '\0' ? strlen (s2) : 0; @@ -314,7 +314,7 @@ fatal (flocp, fmt, va_alist) #undef strerror -char * +const char * strerror (errnum) int errnum; { @@ -336,7 +336,7 @@ strerror (errnum) void perror_with_name (str, name) - char *str, *name; + const char *str, *name; { error (NILF, "%s%s: %s", str, name, strerror (errno)); } @@ -345,7 +345,7 @@ perror_with_name (str, name) void pfatal_with_name (name) - char *name; + const char *name; { fatal (NILF, "%s: %s", name, strerror (errno)); -- cgit v1.2.3