chg: wrap line at 80 chars
authorJun Wu <quark@fb.com>
Tue, 05 Apr 2016 17:43:02 +0100
changeset 28790 b0cc9652e8dc
parent 28789 7f6e0a15189b
child 28791 277b4e6938fa
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.
contrib/chg/chg.c
--- 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);