summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2005-08-18 20:50:38 +0000
committerGary E. Miller <gem@rellim.com>2005-08-18 20:50:38 +0000
commit895f60fe759b1079e80721005f3d83475c3e21f4 (patch)
tree576af3327fa1d2cb2b148c9e825e69475d6a48a6
parent05e78bfe80b051346d16b8717e8043ff63ae3046 (diff)
downloadgpsd-895f60fe759b1079e80721005f3d83475c3e21f4.tar.gz
(q)uit works as well as ^C now
-rw-r--r--cgps.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/cgps.c b/cgps.c
index 1323447b..0ff4b194 100644
--- a/cgps.c
+++ b/cgps.c
@@ -395,14 +395,15 @@ int main(int argc, char *argv[])
else {
fprintf(stderr, "cgps: No data\n");
}
- }
-
- /* Check for user input. */
- c=getch();
- /* Quit if 'q'. */
- if(c=='q') {
- die(NULL);
+ /* Check for user input. */
+ c=getch();
+
+ /* Quit if 'q'. */
+ if(c=='q') {
+ die(NULL);
+ }
+
}
}