From 415251c63ba677ce949a708ebeb8c54260915d18 Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Mon, 1 Aug 2016 14:26:49 +0200 Subject: [PATCH] minor style change --- programs/util.h | 7 ++----- programs/zstdcli.c | 4 ++-- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/programs/util.h b/programs/util.h index 72a40ca8f..72c5275c2 100644 --- a/programs/util.h +++ b/programs/util.h @@ -365,13 +365,10 @@ UTIL_STATIC const char** UTIL_createFileList(const char **inputNames, unsigned i pos += len + 1; nbFiles++; } - } - else - { + } else { nbFiles += UTIL_prepareFileList(inputNames[i], &buf, &pos, &bufend); if (buf == NULL) return NULL; - } - } + } } if (nbFiles == 0) { free(buf); return NULL; } diff --git a/programs/zstdcli.c b/programs/zstdcli.c index 1e5536134..f4fbba53f 100644 --- a/programs/zstdcli.c +++ b/programs/zstdcli.c @@ -441,8 +441,8 @@ int main(int argCount, const char** argv) if (recursive) { fileNamesTable = UTIL_createFileList(filenameTable, filenameIdx, &fileNamesBuf, &fileNamesNb); if (fileNamesTable) { - unsigned i; - for (i=0; i