diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2004-10-04 18:58:59 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2004-10-04 18:58:59 +0000 |
commit | 365e6920239bff9a4bc1eab1b18702fe3f7a8ef2 (patch) | |
tree | 5811884e6378c7a0d83ce43ad05cbf9000738dc2 /gpsd.c | |
parent | a11ee6bbbf2cad8948c7cb388fe09fdf1fa96046 (diff) | |
download | gpsd-365e6920239bff9a4bc1eab1b18702fe3f7a8ef2.tar.gz |
More code-polishing.
Diffstat (limited to 'gpsd.c')
-rw-r--r-- | gpsd.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -561,8 +561,7 @@ int main(int argc, char *argv[]) openlog("gpsd", LOG_PID, LOG_USER); gpsd_report(1, "launching (Version %s)\n", VERSION); - msock = passivesock(service, "tcp", QLEN); - if (msock < 0) { + if ((msock = passivesock(service, "tcp", QLEN)) < 0) { gpsd_report(0, "startup failed, netlib error %d\n", msock); exit(2); } |