From 71781b6c128c22dba5f889781a513f0ce62322b1 Mon Sep 17 00:00:00 2001 From: Andrew Bettison Date: Thu, 24 May 2012 11:28:06 +0930 Subject: [PATCH] Cosmetic improvement --- log.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/log.c b/log.c index f02cd788..d91cdab2 100644 --- a/log.c +++ b/log.c @@ -62,18 +62,18 @@ void vlogMessage(int level, char *fmt, va_list ap) fprintf(stderr, "%s: %s\n", levelstr, buf); } -const char *trimbuildpath(const char *s) +const char *trimbuildpath(const char *path) { /* Remove common path prefix */ int lastsep = 0; int i; - for (i = 0; __FILE__[i] && s[i]; ++i) { - if (i && s[i - 1] == '/') + for (i = 0; __FILE__[i] && path[i]; ++i) { + if (i && path[i - 1] == '/') lastsep = i; - if (__FILE__[i] != s[i]) + if (__FILE__[i] != path[i]) break; } - return &s[lastsep]; + return &path[lastsep]; } int setReason(char *fmt, ...)