summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-02-24 15:20:38 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-02-24 15:20:38 +0000
commitb66d9f5d5d12821f20b84fe7ab603ff8e3fa7db8 (patch)
treed6fcd0eed7a57f9d7af30d18075c8383ab19fc84 /gpsd.c
parent632d223c662dcdebe83085ced99b046c7ba26936 (diff)
downloadgpsd-b66d9f5d5d12821f20b84fe7ab603ff8e3fa7db8.tar.gz
Magic-number elimination and compiler hushing.
Diffstat (limited to 'gpsd.c')
-rw-r--r--gpsd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gpsd.c b/gpsd.c
index a95be98b..af14a2ff 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -1458,7 +1458,7 @@ int main(int argc, char *argv[])
gpsd_report (2, "Priority setting failed.\n");
(void)ntpshm_init(&context, nowait);
} else {
- gpsd_report (2, "Unable to start ntpshm. gpsd must run as root.\n");
+ gpsd_report (LOG_INF, "Unable to start ntpshm. gpsd must run as root.\n");
}
#endif /* NTPSHM_ENABLE */
@@ -1466,9 +1466,9 @@ int main(int argc, char *argv[])
/* we need to connect to dbus as root */
if (initialize_dbus_connection()) {
/* the connection could not be started */
- gpsd_report (2, "unable to connect to the DBUS system bus\n");
+ gpsd_report (LOG_ERROR, "unable to connect to the DBUS system bus\n");
} else
- gpsd_report (2, "successfully connected to the DBUS system bus\n");
+ gpsd_report (LOG_PROG, "successfully connected to the DBUS system bus\n");
#endif /* DBUS_ENABLE */
if (getuid() == 0 && go_background) {
@@ -1492,7 +1492,7 @@ int main(int argc, char *argv[])
if (setgid(stb.st_gid) != 0)
gpsd_report(LOG_ERROR, "setgid() failed, errno %s\n", strerror(errno));
}
- pw = getpwnam( GPSD_USER );
+ pw = getpwnam(GPSD_USER);
if (pw)
(void)seteuid(pw->pw_uid);
}