summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2008-01-19 22:54:23 +0000
committerGary E. Miller <gem@rellim.com>2008-01-19 22:54:23 +0000
commit2f022bcef95228b3a40bee68f0583a7ad2ab25e1 (patch)
tree51d0a49c68f9da7bfc18bad5a23f74d8a76e5454 /gpsd.c
parent602dbae8d3298eeabeaee926514be53e0d1f9f67 (diff)
downloadgpsd-2f022bcef95228b3a40bee68f0583a7ad2ab25e1.tar.gz
'typename' is a reserved word in C++.
Change to 'type_name' so gpsd pieces can be used with C++. Reported by Matt Roberds <mattroberds@cox.net>.
Diffstat (limited to 'gpsd.c')
-rw-r--r--gpsd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gpsd.c b/gpsd.c
index 39d6da5a..b881c7ce 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -216,7 +216,7 @@ in which case it specifies an input source for DGPS or ntrip data.\n\
The following driver types are compiled into this gpsd instance:\n",
DEFAULT_GPSD_PORT);
for (dp = gpsd_drivers; *dp; dp++) {
- (void)printf(" %s\n", (*dp)->typename);
+ (void)printf(" %s\n", (*dp)->type_name);
}
}
@@ -1650,7 +1650,7 @@ int main(int argc, char *argv[])
char id[NMEA_MAX];
assert(channel->device_type != NULL);
(void)snprintf(id, sizeof(id), "GPSD,I=%s",
- channel->device_type->typename);
+ channel->device_type->type_name);
if (channel->subtype[0] != '\0') {
(void)strlcat(id, " ", sizeof(id));
(void)strlcat(id,channel->subtype,sizeof(id));