refactor duplicated code in builtin-send-pack.c and transport.c
[gitweb.git] / builtin-upload-archive.c
index 29446e84ccf9322e722830f5af11da0c56709fb8..73f788ef247febabbabe9bc0d21a890afa198cff 100644 (file)
@@ -67,6 +67,7 @@ static int run_upload_archive(int argc, const char **argv, const char *prefix)
        return write_archive(sent_argc, sent_argv, prefix, 0);
 }
 
+__attribute__((format (printf, 1, 2)))
 static void error_clnt(const char *fmt, ...)
 {
        char buf[1024];