X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fcast%2F_info;fp=ccan%2Fcast%2F_info;h=29128b8d5cf7cff915b07fa01783c2c44727073f;hp=b09e0344e49d6ee570e9b70dbbe98e75393d8847;hb=5877402640cff05f779b23a730e4cc62d729113f;hpb=e7e57cbf6725debd99238ccd8e3bf273a8d7e61c diff --git a/ccan/cast/_info b/ccan/cast/_info index b09e0344..29128b8d 100644 --- a/ccan/cast/_info +++ b/ccan/cast/_info @@ -24,6 +24,7 @@ * #include * #include * #include + * #include * * // Find char @orig in @str, if @repl, replace them. Return number. * static size_t find_chars(char *str, char orig, char repl) @@ -53,6 +54,9 @@ * { * uint64_t hash; * + * if (argc != 2) { + * fprintf(stderr, "Needs argument\n"); exit(1); + * } * // find_chars wants a non-const string, but doesn't * // need it if repl == 0. * printf("%zu %c's in 'test string'\n",