summaryrefslogtreecommitdiff
path: root/gpspacket.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2008-07-14 04:12:07 +0000
committerEric S. Raymond <esr@thyrsus.com>2008-07-14 04:12:07 +0000
commit82a5e991a57431c94b3b4dd6b4c596240e51d97f (patch)
tree37ada5408ccf24d82c00c2205aa513ab3da086ac /gpspacket.c
parentbc4190e04953260715b7f47ae639920365e31334 (diff)
downloadgpsd-82a5e991a57431c94b3b4dd6b4c596240e51d97f.tar.gz
Revert previous EOF_PACKET change, it was a bad idea.
Diffstat (limited to 'gpspacket.c')
-rw-r--r--gpspacket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gpspacket.c b/gpspacket.c
index e011176b..86686e31 100644
--- a/gpspacket.c
+++ b/gpspacket.c
@@ -79,7 +79,7 @@ Lexer_get(LexerObject *self, PyObject *args)
return NULL;
if (len == 0) {
- self->lexer.type = EOF_PACKET;
+ self->lexer.type = EMPTY_PACKET;
self->lexer.outbuffer[0] = '\0';
self->lexer.outbuflen = 0;
}
@@ -252,7 +252,7 @@ initgpspacket(void)
m = Py_InitModule3("gpspacket", gpspacket_methods, module_doc);
PyModule_AddIntConstant(m, "BAD_PACKET", BAD_PACKET);
- PyModule_AddIntConstant(m, "EOF_PACKET", EOF_PACKET);
+ PyModule_AddIntConstant(m, "EMPTY_PACKET", EMPTY_PACKET);
PyModule_AddIntConstant(m, "COMMENT_PACKET", COMMENT_PACKET);
PyModule_AddIntConstant(m, "NMEA_PACKET", NMEA_PACKET);
PyModule_AddIntConstant(m, "SIRF_PACKET", SIRF_PACKET);