Commit Diff


commit - e06ad444a2ebf4c3ef8c41c6f4fa74f358f205be
commit + 738d9f00ebea340b28d1f859f5f39c1ad6fb0fd0
blob - 50b0a0e95ac84837dc120d024ba12c1206a04f4e
blob + 179235943ad862e0426e472d7b0922bf3fef0371
--- log.c
+++ log.c
@@ -33,14 +33,12 @@ static const char	*log_procname;
 void
 log_init(int n_debug, int facility)
 {
-	extern char	*__progname;
-
 	debug = n_debug;
 	verbose = n_debug;
-	log_procinit(__progname);
+	log_procinit(getprogname());
 
 	if (!debug)
-		openlog(__progname, LOG_PID | LOG_NDELAY, facility);
+		openlog(getprogname(), LOG_PID | LOG_NDELAY, facility);
 
 	tzset();
 }