Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed a size check in the new code.
[rsync/rsync.git]
/
wildtest.c
diff --git
a/wildtest.c
b/wildtest.c
index
3c40e4a
..
48161d9
100644
(file)
--- a/
wildtest.c
+++ b/
wildtest.c
@@
-139,15
+139,17
@@
main(int argc, char **argv)
}
if (!wildmatch_errors)
}
if (!wildmatch_errors)
-
printf("No wildmatch errors found.\n"
);
+
fputs("No", stdout
);
else
else
- printf("Found %d wildmatch errors.\n", wildmatch_errors);
+ printf("%d", wildmatch_errors);
+ printf(" wildmatch error%s found.\n", wildmatch_errors == 1? "" : "s");
#ifdef COMPARE_WITH_FNMATCH
if (!fnmatch_errors)
#ifdef COMPARE_WITH_FNMATCH
if (!fnmatch_errors)
-
printf("No fnmatch errors found.\n"
);
+
fputs("No", stdout
);
else
else
- printf("Found %d fnmatch errors.\n", fnmatch_errors);
+ printf("%d", fnmatch_errors);
+ printf(" fnmatch error%s found.\n", fnmatch_errors == 1? "" : "s");
#endif
#endif