--- afd-1.3.5/src/UI/Motif/mon_ctrl/mconfig_log.c 2006-09-02 18:28:07.000000000 +0200 +++ afd-1.3.6pre1/src/UI/Motif/mon_ctrl/mconfig_log.c 2007-07-25 15:43:45.000000000 +0200 @@ -1,6 +1,6 @@ /* * mconfig_log.c - Part of AFD, an automatic file distribution program. - * Copyright (c) 2004 Holger Kiehl + * Copyright (c) 2004 - 2007 Holger Kiehl * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -52,15 +52,14 @@ #include "mon_ctrl.h" #include "x_common_defs.h" -/* External global variables */ +/* External global variables. */ extern int mon_log_fd, sys_log_fd; #ifdef WITHOUT_FIFO_RW_SUPPORT extern int mon_log_readfd, sys_log_readfd; #endif -extern char *profile, - *p_work_dir, +extern char *p_work_dir, user[]; @@ -165,14 +164,7 @@ length += vsprintf(&buf[length], fmt, ap); va_end(ap); - if (profile != NULL) - { - length += sprintf(&buf[length], " (%s <%s>)\n", profile, user); - } - else - { - length += sprintf(&buf[length], " (%s)\n", user); - } + length += sprintf(&buf[length], " (%s)\n", user); (void)write(*p_fd, buf, length);