X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=info.c;h=6a4a296b004013d7b77ba9bb746b79225385f6d7;hb=1a66a74e8a35c1fd85060060ba61bb1b67d6eb44;hp=38087c6e662bdc4d6a3a8ac40630a88c4f5fdfbc;hpb=393c437772fab75e1ebf88a85521b680fe3b927b;p=ext%2Fsubsurface.git diff --git a/info.c b/info.c index 38087c6..6a4a296 100644 --- a/info.c +++ b/info.c @@ -38,8 +38,8 @@ static char *get_text(GtkTextView *view) * NOTW: NULL and "" need to be treated as "unchanged" */ static int text_changed(const char *old, const char *new) { - return ((old && strcmp(old,new)) || - (!old && strcmp("",new))); + return (old && strcmp(old,new)) || + (!old && strcmp("",new)); } static char *get_combo_box_entry_text(GtkComboBoxEntry *combo_box, char **textp) @@ -258,13 +258,13 @@ void add_location(const char *string) static int get_rating(const char *string) { - int rating = 0; + int rating_val = 0; int i; for (i = 0; i <= 5; i++) if (!strcmp(star_strings[i],string)) - rating = i; - return rating; + rating_val = i; + return rating_val; } struct dive_info {