From: Kaj-Michael Lang Date: Wed, 23 Jan 2008 23:16:50 +0000 (+0200) Subject: Go back to strcmp X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9680c38593fc77f9679aa7685ae7a057f348dae7;p=mapper Go back to strcmp --- diff --git a/src/track.c b/src/track.c index b8284d0..800cd0f 100644 --- a/src/track.c +++ b/src/track.c @@ -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);