aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortradke <tradke@1faa4e14-9dd3-4be0-9f0e-ffe519881164>2004-04-22 23:19:36 +0000
committertradke <tradke@1faa4e14-9dd3-4be0-9f0e-ffe519881164>2004-04-22 23:19:36 +0000
commiteb70f25fe36e0feb8557e96d2d085efa1a67a256 (patch)
tree85aa7fded7c9775966b25c98a6b3ee3cb4e3a6a0
parentb5921a536c0c3092ce4656d9f9d840ac39154442 (diff)
Fixed duplicate variable declaration.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@197 1faa4e14-9dd3-4be0-9f0e-ffe519881164
-rw-r--r--src/Content.c8
1 files 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, " <li> Started by <span class=\"hilite\">");
- ConcatCString(message, user);
+ ConcatCString(message, this_user);
ConcatCString(message, "</span></li>\n");
HTTP_SendString(request, message );
}