diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-09-30 06:21:19 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-09-30 06:21:19 -0400 |
commit | 82cd8cd019dec313938cba222871d32dbe5d449b (patch) | |
tree | 78145fc02ad49f37235dc8b1c5d3fa8695859d11 /libgps_sock.c | |
parent | c8014317e6dd0d98dcd4616f039c11317c2d3fe5 (diff) | |
download | gpsd-82cd8cd019dec313938cba222871d32dbe5d449b.tar.gz |
Re-do runtime dispatch in the client library.
Diffstat (limited to 'libgps_sock.c')
-rw-r--r-- | libgps_sock.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/libgps_sock.c b/libgps_sock.c index e4543908..eee2b926 100644 --- a/libgps_sock.c +++ b/libgps_sock.c @@ -39,10 +39,8 @@ extern char *strtok_r(char *, const char *, char **); #endif /* S_SPLINT_S */ -/*@-matchfields@*/ struct privdata_t { - enum export_t export_type; bool newstyle; /* data buffered from the last read */ ssize_t waiting; @@ -51,7 +49,6 @@ struct privdata_t int waitcount; #endif /* LIBGPS_DEBUG */ }; -/*@+matchfields@*/ #define PRIVATE(gpsdata) ((struct privdata_t *)gpsdata->privdata) /*@-branchstate@*/ @@ -88,7 +85,6 @@ int gps_sock_open(/*@null@*/const char *host, /*@null@*/const char *port, gpsdata->privdata = (void *)malloc(sizeof(struct privdata_t)); if (gpsdata->privdata == NULL) return -1; - PRIVATE(gpsdata)->export_type = sockets; PRIVATE(gpsdata)->newstyle = false; PRIVATE(gpsdata)->waiting = 0; |