You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by qu...@apache.org on 2004/05/29 08:12:58 UTC
svn commit: rev 20578 - incubator/spamassassin/trunk/spamc
Author: quinlan
Date: Fri May 28 23:12:57 2004
New Revision: 20578
Modified:
incubator/spamassassin/trunk/spamc/spamc.c
Log:
fix compile error
Modified: incubator/spamassassin/trunk/spamc/spamc.c
==============================================================================
--- incubator/spamassassin/trunk/spamc/spamc.c (original)
+++ incubator/spamassassin/trunk/spamc/spamc.c Fri May 28 23:12:57 2004
@@ -401,18 +401,20 @@
int
get_current_user(char **username)
{
+#ifndef _WIN32
+ struct passwd *curr_user;
+#endif
+
if (*username != NULL) {
*username = strdup(*username);
if (username == NULL)
goto fail;
return EX_OK;
}
-#ifdef _WIN32
+#ifdef _WIN32
return EX_OK;
-
#else
- struct passwd *curr_user;
/* Get the passwd information for the effective uid spamc is running
* under. Setting errno to zero is recommended in the manpage.