From 791ada572b5c91b17b1b3c71af48c6bf9b1ca111 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Fri, 30 Mar 2012 11:01:11 +0000 Subject: add some braces to avoid compiler warnings --- Src/init.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'Src') diff --git a/Src/init.c b/Src/init.c index 1212a48d9..6f14943e1 100644 --- a/Src/init.c +++ b/Src/init.c @@ -341,12 +341,13 @@ parseopts(char *nam, char ***argvp) if (!(optno = optlookup(*argv))) { WARN_OPTION("no such option: %s", *argv); LAST_OPTION(1); - } else if (optno == RESTRICTED && !nam) + } else if (optno == RESTRICTED && !nam) { restricted = action; - else if ((optno == EMACSMODE || optno == VIMODE) && nam) + } else if ((optno == EMACSMODE || optno == VIMODE) && nam) { WARN_OPTION("can't change option: %s", *argv); - else if (dosetopt(optno, action, !nam) && nam) + } else if (dosetopt(optno, action, !nam) && nam) { WARN_OPTION("can't change option: %s", *argv); + } break; } else if (isspace(STOUC(**argv))) { /* zsh's typtab not yet set, have to use ctype */ @@ -361,12 +362,13 @@ parseopts(char *nam, char ***argvp) if (!(optno = optlookupc(**argv))) { WARN_OPTION("bad option: -%c", **argv); LAST_OPTION(1); - } else if (optno == RESTRICTED && !nam) + } else if (optno == RESTRICTED && !nam) { restricted = action; - else if ((optno == EMACSMODE || optno == VIMODE) && nam) + } else if ((optno == EMACSMODE || optno == VIMODE) && nam) { WARN_OPTION("can't change option: %s", *argv); - else if (dosetopt(optno, action, !nam) && nam) + } else if (dosetopt(optno, action, !nam) && nam) { WARN_OPTION("can't change option: -%c", **argv); + } } } argv++; @@ -383,7 +385,7 @@ parseopts(char *nam, char ***argvp) *argvp = argv; return cmd; } - + /**/ static void printhelp(void) -- cgit 1.4.1