diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2010-04-23 03:44:45 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2010-04-23 03:44:45 +0000 |
commit | fddeb59e503ffbfbaac591d18ef04618a5e19903 (patch) | |
tree | 56fdcb180dac2ccf7b88603ee095c048133cbe93 /sys/kern | |
parent | 889490d7c3621a7d943236a0802a1640ad75cb40 (diff) |
Remove unnecessary pointer dereference causing gcc2 to warn.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/tty_nmea.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/tty_nmea.c b/sys/kern/tty_nmea.c index dd6974bdb3d..035cd843cc8 100644 --- a/sys/kern/tty_nmea.c +++ b/sys/kern/tty_nmea.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty_nmea.c,v 1.37 2010/04/21 23:43:39 sthen Exp $ */ +/* $OpenBSD: tty_nmea.c,v 1.38 2010/04/23 03:44:44 miod Exp $ */ /* * Copyright (c) 2006, 2007, 2008 Marc Balmer <mbalmer@openbsd.org> @@ -436,7 +436,7 @@ nmea_degrees(int64_t *dst, char *src, int neg) for (; *src && n < ppos; n++) min = min * 10 + (*src++ - '0'); - *src++; /* skip decimal point */ + src++; /* skip decimal point */ for (; *src && n < (ppos + 4); n++) min = min * 10 + (*src++ - '0'); |