Browse Source

Fix non-literal format in printf-style calls

These were found using gcc 4.3.2-1ubuntu11 with the warning:

    warning: format not a string literal and no format arguments

Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Daniel Lowe 16 years ago committed by Junio C Hamano
parent
commit
42fc1139a0
  1. 2
      builtin-check-attr.c
  2. 2
      hash-object.c

2
builtin-check-attr.c

@ -97,7 +97,7 @@ int cmd_check_attr(int argc, const char **argv, const char *prefix)
else if (stdin_paths && doubledash < argc) else if (stdin_paths && doubledash < argc)
errstr = "Can't specify files with --stdin"; errstr = "Can't specify files with --stdin";
if (errstr) { if (errstr) {
error (errstr); error("%s", errstr);
usage_with_options(check_attr_usage, check_attr_options); usage_with_options(check_attr_usage, check_attr_options);
} }



2
hash-object.c

@ -110,7 +110,7 @@ int main(int argc, const char **argv)
} }


if (errstr) { if (errstr) {
error (errstr); error("%s", errstr);
usage_with_options(hash_object_usage, hash_object_options); usage_with_options(hash_object_usage, hash_object_options);
} }



Loading…
Cancel
Save