* NSM notify list handling.
*/
-#include "config.h"
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <dirent.h>
#include <errno.h>
|| matchhostname(de->d_name, "localhost")) {
char *fname;
fname=xmalloc(strlen(SM_BAK_DIR)+sizeof(de->d_name)+2);
- dprintf(L_DEBUG, "We're on our own notify list?!?");
- sprintf(fname, SM_BAK_DIR "/%s", de->d_name);
+ dprintf(N_DEBUG, "We're on our own notify list?!?");
+ sprintf(fname, "%s/%s", SM_BAK_DIR, de->d_name);
if (unlink(fname))
- log(L_ERROR, "unlink(%s): %s",
+ note(N_ERROR, "unlink(%s): %s",
fname, strerror(errno));
free(fname);
continue;