Right now the return value is initialized to -1 (failure) and set to zero only if a valid token is found. However, this means that i.e. a blank or template config file containing only comments will yield failure on parsing. Initialize to success, and set to failure only if failure occurs. Signed-off-by: Eric Sandeen <sandeen@xxxxxxxxxx> --- diff --git a/mkfs/config.c b/mkfs/config.c index 835adc4..1a2cd35 100644 --- a/mkfs/config.c +++ b/mkfs/config.c @@ -385,7 +385,7 @@ parse_config_stream( const char *config_file, FILE *fp) { - int ret = -1; + int ret = 0; char *line = NULL; ssize_t linelen; size_t len = 0, lineno = 0; -- To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html