From: Christian Couder Date: Sun, 01 Dec 2013 07:49:14 GMT Subject: [PATCH 1/5] environment: normalize use of prefixcmp() by removing " != 0" Message-ID: <20131201074919.3042.88989.chriscool@tuxfamily.org> In-Reply-To: <20131201074818.3042.57357.chriscool@tuxfamily.org> To be able to automatically convert prefixcmp() to starts_with() we need first to make sure that prefixcmp() is always used in the same way. So let's remove " != 0" after prefixcmp(). Signed-off-by: Christian Couder --- environment.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/environment.c b/environment.c index 0a15349..cd2b068 100644 --- a/environment.c +++ b/environment.c @@ -171,7 +171,7 @@ const char *get_git_namespace(void) const char *strip_namespace(const char *namespaced_ref) { - if (prefixcmp(namespaced_ref, get_git_namespace()) != 0) + if (prefixcmp(namespaced_ref, get_git_namespace())) return NULL; return namespaced_ref + namespace_len; } -- 1.8.4.1.561.g12affca