From be0d01f8955618beb822f4497a4e6c4a398ee1c0 Mon Sep 17 00:00:00 2001 From: Alexander Kabaev Date: Mon, 30 Jun 2003 17:05:40 +0000 Subject: [PATCH] Rename a local variable in order to avoid collision with standard 'log' function. --- bin/pwd/pwd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/pwd/pwd.c b/bin/pwd/pwd.c index 8eedc0b861e..888b26e0c04 100644 --- a/bin/pwd/pwd.c +++ b/bin/pwd/pwd.c @@ -108,7 +108,7 @@ usage(void) static char * getcwd_logical(void) { - struct stat log, phy; + struct stat lg, phy; char *pwd; /* @@ -116,9 +116,9 @@ getcwd_logical(void) * the current working directory. */ if ((pwd = getenv("PWD")) != NULL && *pwd == '/') { - if (stat(pwd, &log) == -1 || stat(".", &phy) == -1) + if (stat(pwd, &lg) == -1 || stat(".", &phy) == -1) return (NULL); - if (log.st_dev == phy.st_dev && log.st_ino == phy.st_ino) + if (lg.st_dev == phy.st_dev && lg.st_ino == phy.st_ino) return (pwd); }