diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-08-27 09:27:38 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-08-27 09:27:38 -0400 |
commit | a5834952c150d5b7c7b523e0ce62df0881ad2728 (patch) | |
tree | 249a626a8d7a292372dc2e76ad822c077bd740ab /gpsdclient.c | |
parent | f9153a028e61d4cdca8c90eec19e11fedb23c59d (diff) | |
download | gpsd-a5834952c150d5b7c7b523e0ce62df0881ad2728.tar.gz |
No need to use setlocale(NUMERIC) any more, so lose the code overhead.
All regression tests pass.
Diffstat (limited to 'gpsdclient.c')
-rw-r--r-- | gpsdclient.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/gpsdclient.c b/gpsdclient.c index d202bf3e..83ca07dd 100644 --- a/gpsdclient.c +++ b/gpsdclient.c @@ -10,7 +10,6 @@ #include <strings.h> /* for strcasecmp() */ #include <math.h> #include <assert.h> -#include <locale.h> #include "gpsd_config.h" #include "gps.h" @@ -97,7 +96,6 @@ enum unit gpsd_units(void) { char *envu = NULL; - (void)setlocale(LC_NUMERIC, "C"); if ((envu = getenv("GPSD_UNITS")) != NULL && *envu != '\0') { if (0 == strcasecmp(envu, "imperial")) { return imperial; |