From eb70f25fe36e0feb8557e96d2d085efa1a67a256 Mon Sep 17 00:00:00 2001 From: tradke Date: Thu, 22 Apr 2004 23:19:36 +0000 Subject: Fixed duplicate variable declaration. git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@197 1faa4e14-9dd3-4be0-9f0e-ffe519881164 --- src/Content.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Content.c b/src/Content.c index 1370c2e..bd4df0a 100644 --- a/src/Content.c +++ b/src/Content.c @@ -373,7 +373,7 @@ static int MainPage(const cGH *cctkGH, httpRequest *request, void *data) String *menu = String_New(); const char *dir = NULL; const char *file = NULL; - char *user = NULL; + char *this_user = NULL; struct httpLink *hlink = NULL; int seconds,minutes,hours,days,weeks,months,years,millenia; char host[HOSTLENGTH+1] = EMPTYSTRING; @@ -672,11 +672,11 @@ static int MainPage(const cGH *cctkGH, httpRequest *request, void *data) } HTTP_SendString(request, message ); - user = getenv ("USER"); - if (user) + this_user = getenv ("USER"); + if (this_user) { SetToCString(message, "
  • Started by "); - ConcatCString(message, user); + ConcatCString(message, this_user); ConcatCString(message, "
  • \n"); HTTP_SendString(request, message ); } -- cgit v1.2.3