Skip to content

Commit

Permalink
Followup on the recommendation in Savannah bug #44603.
Browse files Browse the repository at this point in the history
That is, "probably LOG_SHOUT should be replaced with LOG_ERROR in
assignments and comparison".  Fix the only case of this.
  • Loading branch information
eric-s-raymond committed Mar 22, 2015
1 parent 1e3cac5 commit 6cb7d10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libgpsd_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ void gpsd_vlog(const struct gpsd_errout_t *errout,
visibilize(outbuf, outlen, buf, strlen(buf));

if (getpid() == getsid(getpid()))
syslog((errlevel == LOG_SHOUT) ? LOG_ERR : LOG_NOTICE, "%s", outbuf);
syslog((errlevel <= LOG_SHOUT) ? LOG_ERR : LOG_NOTICE, "%s", outbuf);
else if (errout->report != NULL)
errout->report(outbuf);
else
Expand Down

0 comments on commit 6cb7d10

Please sign in to comment.