X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=server-info.c;h=4098ca2b5c166c32cfe4aea9d1bff2e6593e9a60;hb=c8c562a238071843c64ea0f3a2c85481606da379;hp=66b0d9d878a011393582b837301eb1fd5caf2e40;hpb=fe60dff744aa9fc7440de0a521e8be71ec35a059;p=git.git diff --git a/server-info.c b/server-info.c index 66b0d9d87..4098ca2b5 100644 --- a/server-info.c +++ b/server-info.c @@ -132,8 +132,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 +246,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; }