X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=server-info.c;h=9ec744e9f2da294a21ac02b46f0ea0b35889ae54;hb=c5a5f12e5a514d198f49a76d4e001c88570bf7d1;hp=66b0d9d878a011393582b837301eb1fd5caf2e40;hpb=2819854ec5013fc0958ea477fa49d53fc0faee80;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; }