summaryrefslogtreecommitdiff
path: root/sirf.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2005-08-20 13:37:52 +0000
committerEric S. Raymond <esr@thyrsus.com>2005-08-20 13:37:52 +0000
commit8f3d32f960201053ac2e93247f8488e6f7e7df5b (patch)
tree4adbf7093d0e093e6086b6fc9d6aa16135001438 /sirf.c
parent58afacedd75d05e693acc42a6c281dbe81436c98 (diff)
downloadgpsd-8f3d32f960201053ac2e93247f8488e6f7e7df5b.tar.gz
Minor optimization using internal statics, thanks to Remco for the reminder.
Diffstat (limited to 'sirf.c')
-rw-r--r--sirf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sirf.c b/sirf.c
index 608fa567..80df45ab 100644
--- a/sirf.c
+++ b/sirf.c
@@ -73,7 +73,7 @@ static bool sirf_speed(int ttyfd, speed_t speed)
/* change speed in binary mode */
{
/*@ +charint @*/
- unsigned char msg[] = {0xa0, 0xa2, 0x00, 0x09,
+ static unsigned char msg[] = {0xa0, 0xa2, 0x00, 0x09,
0x86,
0x0, 0x0, 0x12, 0xc0, /* 4800 bps */
0x08, /* 8 data bits */
@@ -92,7 +92,7 @@ static bool sirf_to_nmea(int ttyfd, speed_t speed)
/* switch from binary to NMEA at specified baud */
{
/*@ +charint @*/
- unsigned char msg[] = {0xa0, 0xa2, 0x00, 0x18,
+ static unsigned char msg[] = {0xa0, 0xa2, 0x00, 0x18,
0x81, 0x02,
0x01, 0x01, /* GGA */
0x00, 0x00, /* suppress GLL */