Fixes for compiling with memwatch

This commit is contained in:
Michiel Broek
2002-05-11 11:14:35 +00:00
parent e3a8865b45
commit 741e8a077d
8 changed files with 20 additions and 20 deletions

View File

@@ -384,22 +384,19 @@ int main(int argc, char *argv[])
int loop = 1;
struct passwd *pw;
#ifdef MEMWATCH
mwInit();
#endif
/*
* Find out who is on the keyboard or automated the keyboard.
*/
pw = getpwuid(geteuid());
if (strcmp(pw->pw_name, (char *)"mbse")) {
printf("ERROR: only user \"mbse\" may use this program\n");
#ifdef MEMWATCH
mwExit();
#endif
exit(1);
}
#ifdef MEMWATCH
mwInit();
#endif
/*
* Read the global configuration data, registrate connection
*/