summaryrefslogtreecommitdiff
path: root/log.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-04-06 23:36:48 +0200
committerLennart Poettering <lennart@poettering.net>2010-04-06 23:36:48 +0200
commit2d368c149b90a7b284035f8883eb0c3e64a2caab (patch)
tree431329a48f90cc90aacf91283956456b690ce4b5 /log.c
parenta0d40ac588701010ea6a9366f6a874e83844858e (diff)
util: declare __progname in util.h
Diffstat (limited to 'log.c')
-rw-r--r--log.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/log.c b/log.c
index da1c4f61e3..879cb53733 100644
--- a/log.c
+++ b/log.c
@@ -31,8 +31,6 @@
#include "util.h"
#include "macro.h"
-extern char * __progname;
-
#define SYSLOG_TIMEOUT_USEC (5*USEC_PER_SEC)
#define LOG_BUFFER_MAX 1024
@@ -188,7 +186,7 @@ static int write_to_syslog(
zero(iovec);
IOVEC_SET_STRING(iovec[0], header_priority);
IOVEC_SET_STRING(iovec[1], header_time);
- IOVEC_SET_STRING(iovec[2], file_name_from_path(__progname));
+ IOVEC_SET_STRING(iovec[2], __progname);
IOVEC_SET_STRING(iovec[3], header_pid);
IOVEC_SET_STRING(iovec[4], buffer);
@@ -228,7 +226,7 @@ static int write_to_kmsg(
zero(iovec);
IOVEC_SET_STRING(iovec[0], header_priority);
- IOVEC_SET_STRING(iovec[1], file_name_from_path(__progname));
+ IOVEC_SET_STRING(iovec[1], __progname);
IOVEC_SET_STRING(iovec[2], header_pid);
IOVEC_SET_STRING(iovec[3], buffer);
IOVEC_SET_STRING(iovec[4], (char*) "\n");