X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=server-info.c;h=4098ca2b5c166c32cfe4aea9d1bff2e6593e9a60;hb=d425aa5cac0b4124c6aa5520295e0fd5ed81780b;hp=66b0d9d878a011393582b837301eb1fd5caf2e40;hpb=b4955fb611ce407ef0e522862c60ae0472dbfe5e;p=git.git diff --git a/server-info.c b/server-info.c index 66b0d9d87..9ec744e9f 100644 --- a/server-info.c +++ b/server-info.c @@ -113,11 +113,8 @@ static int read_pack_info_file(const char *infofile) goto out_stale; break; case 'D': /* we used to emit D but that was misguided. */ - goto out_stale; - break; case 'T': /* we used to emit T but nobody uses it. */ goto out_stale; - break; default: error("unrecognized: %s", line); break; @@ -132,8 +129,8 @@ static int read_pack_info_file(const char *infofile) static int compare_info(const void *a_, const void *b_) { - struct pack_info * const* a = a_; - struct pack_info * const* b = b_; + struct pack_info *const *a = a_; + struct pack_info *const *b = b_; if (0 <= (*a)->old_num && 0 <= (*b)->old_num) /* Keep the order in the original */ @@ -246,7 +243,7 @@ int update_server_info(int force) errs = errs | update_info_packs(force); /* remove leftover rev-cache file if there is any */ - unlink(git_path("info/rev-cache")); + unlink_or_warn(git_path("info/rev-cache")); return errs; }