From: Nguyễn Thái Ngọc Duy Date: Wed, 07 May 2014 14:51:41 GMT Subject: [PATCH 01/20] dir.c: coding style fix Message-ID: <1399474320-6840-2-git-send-email-pclouds@gmail.com> In-Reply-To: <1399474320-6840-1-git-send-email-pclouds@gmail.com> --- dir.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/dir.c b/dir.c index eb6f581..7a83f70 100644 --- a/dir.c +++ b/dir.c @@ -553,8 +553,7 @@ int add_excludes_from_file_to_list(const char *fname, buf = xrealloc(buf, size+1); buf[size++] = '\n'; } - } - else { + } else { size = xsize_t(st.st_size); if (size == 0) { close(fd); @@ -789,9 +788,11 @@ static void prep_exclude(struct dir_struct *dir, const char *base, int baselen) group = &dir->exclude_list_group[EXC_DIRS]; - /* Pop the exclude lists from the EXCL_DIRS exclude_list_group + /* + * Pop the exclude lists from the EXCL_DIRS exclude_list_group * which originate from directories not in the prefix of the - * path being checked. */ + * path being checked. + */ while ((stk = dir->exclude_stack) != NULL) { if (stk->baselen <= baselen && !strncmp(dir->basebuf, base, stk->baselen)) @@ -818,8 +819,7 @@ static void prep_exclude(struct dir_struct *dir, const char *base, int baselen) if (current < 0) { cp = base; current = 0; - } - else { + } else { cp = strchr(base + current + 1, '/'); if (!cp) die("oops in prep_exclude"); -- 1.9.1.346.ga2b5940