convert "oidcmp() != 0" to "!oideq()"
[gitweb.git] / builtin / am.c
index 9f7ecf6ecb7711c35277fa827c4c2afc0dfba867..e54110d4742e19b55a49ab569650d4a9b4511786 100644 (file)
@@ -2077,7 +2077,7 @@ static int safe_to_abort(const struct am_state *state)
        if (get_oid("HEAD", &head))
                oidclr(&head);
 
-       if (!oidcmp(&head, &abort_safety))
+       if (oideq(&head, &abort_safety))
                return 1;
 
        warning(_("You seem to have moved HEAD since the last 'am' failure.\n"