diff options
author | Chris Kuethe <ckuethe@users.berlios.de> | 2010-04-18 13:48:36 -0700 |
---|---|---|
committer | Chris Kuethe <ckuethe@users.berlios.de> | 2010-04-18 13:48:36 -0700 |
commit | 72745d424a14501521a7b03a90794863e59bfcdb (patch) | |
tree | a01f649d3599a5069e8fbfb790ba241f21cb4897 /test_gpsmm.cpp | |
parent | 15ccb78682d069a1bd033f5369cd3670a4da684c (diff) | |
download | gpsd-72745d424a14501521a7b03a90794863e59bfcdb.tar.gz |
rename #if 0 to be more descriptive
Diffstat (limited to 'test_gpsmm.cpp')
-rw-r--r-- | test_gpsmm.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/test_gpsmm.cpp b/test_gpsmm.cpp index 45114c73..f30fdfa6 100644 --- a/test_gpsmm.cpp +++ b/test_gpsmm.cpp @@ -15,7 +15,7 @@ using namespace std; -#if 0 +#ifdef SAMPLE_USAGE static void callback(struct gps_data_t* p, char* buf, size_t len); #endif @@ -29,7 +29,7 @@ int main(void) { return (1); } -#if 0 +#ifdef SAMPLE_USAGE cout << "Going to set the callback...\n"; if (gps_rec.set_callback(callback)!=0 ) { cout << "Error setting callback.\n"; @@ -40,8 +40,8 @@ int main(void) { sleep(10); cout << "Exited from sleep...\n"; #endif - -#if 0 + +#ifdef SAMPLE_USAGE if (gps_rec.del_callback()!=0) { cout << "Error deleting callback\n"; return (1); @@ -54,9 +54,8 @@ int main(void) { return 0; } -#if 0 +#ifdef SAMPLE_USAGE static void callback(struct gps_data_t* p, char* buf, size_t len) { - if (p==NULL) { cout << "Error polling gpsd\n"; return; |