]> err.no Git - mapper/commitdiff
Go back to strcmp
authorKaj-Michael Lang <milang@tal.org>
Wed, 23 Jan 2008 23:16:50 +0000 (01:16 +0200)
committerKaj-Michael Lang <milang@tal.org>
Wed, 23 Jan 2008 23:16:50 +0000 (01:16 +0200)
src/track.c

index b8284d09b915fff65845cefd195cd11492df4c8b..800cd0fbe6cf0009e5a506d4dfa4625743337804 100644 (file)
@@ -181,7 +181,7 @@ announce_thres_unsquared=(20+(guint)gps->speed)*_announce_notice_ratio*3;
 
 /* Check if we should announce upcoming waypoints. */
 if (gps && show_directions && _next_way_dist_squared < (announce_thres_unsquared * announce_thres_unsquared)) {
-       if (_enable_voice && g_strcmp0(_next_way->desc, _last_spoken_phrase)) {
+       if (_enable_voice && strcmp(_next_way->desc, _last_spoken_phrase)) {
                g_free(_last_spoken_phrase);
                _last_spoken_phrase=g_strdup(_next_way->desc);
                speak_text(_last_spoken_phrase);