[prev in list] [next in list] [prev in thread] [next in thread] 

List:       varnish-commit
Subject:    [master] 3c4281b Flexelinting pointer constness
From:       Poul-Henning Kamp <phk () FreeBSD ! org>
Date:       2018-03-29 11:13:11
Message-ID: 20180329111311.58E44A36C3 () lists ! varnish-cache ! org
[Download RAW message or body]


commit 3c4281b1e9cbb82d546085d338075a1eb7f63bce
Author: Poul-Henning Kamp <phk@FreeBSD.org>
Date:   Thu Mar 29 11:03:55 2018 +0000

    Flexelinting pointer constness

diff --git a/bin/varnishtest/vtc.c b/bin/varnishtest/vtc.c
index ab0ff6e..d4e45c7 100644
--- a/bin/varnishtest/vtc.c
+++ b/bin/varnishtest/vtc.c
@@ -460,7 +460,8 @@ exec_file(const char *fn, const char *script, const char *tmpdir,
 {
 	FILE *f;
 	struct vsb *vsb;
-	char *p;
+	const char *p;
+	char *q;
 
 	(void)signal(SIGPIPE, SIG_IGN);
 
@@ -475,10 +476,10 @@ exec_file(const char *fn, const char *script, const char *tmpdir,
 	vsb = VSB_new_auto();
 	AN(vsb);
 	if (*fn != '/') {
-		p = macro_get("pwd", NULL);
-		AN(p);
-		VSB_cat(vsb, p);
-		free(p);
+		q = macro_get("pwd", NULL);
+		AN(q);
+		VSB_cat(vsb, q);
+		free(q);
 	}
 	p = strrchr(fn, '/');
 	if (p != NULL) {
_______________________________________________
varnish-commit mailing list
varnish-commit@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-commit
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic