# HG changeset patch # User Jun Wu # Date 2016-04-05 16:43:02 # Node ID b0cc9652e8dc09ba9b6e99a811ecbfc1380bb272 # Parent 7f6e0a15189b47f3f4f79072ad4cb99e5f17621c chg: wrap line at 80 chars This is a style fix. I was using tabstop=4 for some early patches, although I realized we use tabstop=8 later but these early style issues remains. Let's fix them. diff --git a/contrib/chg/chg.c b/contrib/chg/chg.c --- a/contrib/chg/chg.c +++ b/contrib/chg/chg.c @@ -72,11 +72,14 @@ static size_t testsensitiveflag(const ch size_t len = strlen(flags[i].name); size_t narg = flags[i].narg; if (memcmp(arg, flags[i].name, len) == 0) { - if (arg[len] == '\0') { /* --flag (value) */ + if (arg[len] == '\0') { + /* --flag (value) */ return narg + 1; - } else if (arg[len] == '=' && narg > 0) { /* --flag=value */ + } else if (arg[len] == '=' && narg > 0) { + /* --flag=value */ return 1; - } else if (flags[i].name[1] != '-') { /* short flag */ + } else if (flags[i].name[1] != '-') { + /* short flag */ return 1; } } @@ -163,7 +166,8 @@ static void setcmdserveropts(struct cmds static void lockcmdserver(struct cmdserveropts *opts) { if (opts->lockfd == -1) { - opts->lockfd = open(opts->lockfile, O_RDWR | O_CREAT | O_NOFOLLOW, 0600); + opts->lockfd = open(opts->lockfile, + O_RDWR | O_CREAT | O_NOFOLLOW, 0600); if (opts->lockfd == -1) abortmsgerrno("cannot create lock file %s", opts->lockfile);