Mercurial > hg-stable
changeset 28790:b0cc9652e8dc
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.
author | Jun Wu <quark@fb.com> |
---|---|
date | Tue, 05 Apr 2016 17:43:02 +0100 |
parents | 7f6e0a15189b |
children | 277b4e6938fa |
files | contrib/chg/chg.c |
diffstat | 1 files changed, 8 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/chg/chg.c Tue Apr 05 15:16:01 2016 +0100 +++ b/contrib/chg/chg.c Tue Apr 05 17:43:02 2016 +0100 @@ -72,11 +72,14 @@ 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 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);