[master] fd23878 Remove new line and indentation OCD

Federico G. Schwindt fgsch at lodoss.net
Fri Jan 20 13:01:05 CET 2017


commit fd2387888f9ef9439916b90dcaff7331af9b1825
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date:   Fri Jan 20 11:58:18 2017 +0000

    Remove new line and indentation OCD

diff --git a/lib/libvarnishapi/vsl_arg.c b/lib/libvarnishapi/vsl_arg.c
index 89ab29d..23f1844 100644
--- a/lib/libvarnishapi/vsl_arg.c
+++ b/lib/libvarnishapi/vsl_arg.c
@@ -244,13 +244,13 @@ vsl_ix_arg(struct VSL_data *vsl, int opt, const char *arg)
 	    vsl->vbm_supress);
 	if (i == -1)
 		return (vsl_diag(vsl, "-%c: \"%s\" matches zero tags",
-			(char)opt, arg));
+		    (char)opt, arg));
 	else if (i == -2)
 		return (vsl_diag(vsl, "-%c: \"%s\" is ambiguous",
-			(char)opt, arg));
+		    (char)opt, arg));
 	else if (i == -3)
 		return (vsl_diag(vsl, "-%c: Syntax error in \"%s\"",
-			(char)opt, arg));
+		    (char)opt, arg));
 
 	return (1);
 }
@@ -278,16 +278,16 @@ vsl_IX_arg(struct VSL_data *vsl, int opt, const char *arg)
 			vbit_destroy(tags);
 		if (i == -1)
 			return (vsl_diag(vsl,
-				"-%c: \"%*.*s\" matches zero tags",
-				(char)opt, l, l, b));
+			    "-%c: \"%*.*s\" matches zero tags",
+			    (char)opt, l, l, b));
 		else if (i == -2)
 			return (vsl_diag(vsl,
-				"-%c: \"%*.*s\" is ambiguous",
-				(char)opt, l, l, b));
+			    "-%c: \"%*.*s\" is ambiguous",
+			    (char)opt, l, l, b));
 		else if (i <= -3)
 			return (vsl_diag(vsl,
-				"-%c: Syntax error in \"%*.*s\"",
-				(char)opt, l, l, b));
+			    "-%c: Syntax error in \"%*.*s\"",
+			    (char)opt, l, l, b));
 		b = e + 1;
 	}
 
@@ -295,8 +295,8 @@ vsl_IX_arg(struct VSL_data *vsl, int opt, const char *arg)
 	if (vre == NULL) {
 		if (tags)
 			vbit_destroy(tags);
-		return (vsl_diag(vsl, "-%c: Regex error at position %d (%s)\n",
-			(char)opt, off, err));
+		return (vsl_diag(vsl, "-%c: Regex error at position %d (%s)",
+		    (char)opt, off, err));
 	}
 
 	ALLOC_OBJ(vslf, VSLF_MAGIC);



More information about the varnish-commit mailing list