[Pkg-wmaker-commits] [wmcoincoin] 51/87: Fix -Wparentheses compiler warnings.
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Fri Aug 28 17:27:38 UTC 2015
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to branch master
in repository wmcoincoin.
commit 8e2a8abe4fcd62cebb2e2190bc41e8a8b3023d34
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date: Tue Nov 11 12:13:53 2014 -0600
Fix -Wparentheses compiler warnings.
---
src/http.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/http.c b/src/http.c
index 1dfb1cd..c49ac41 100644
--- a/src/http.c
+++ b/src/http.c
@@ -814,15 +814,15 @@ http_skip_header(HttpRequest *r)
[; expires=<date>][; domain=<domain_name>]
[; path=<some_path>][; secure][; httponly] */
char *garbage;
- if (garbage = strcasestr(buff+11, "expires=")) {
+ if ((garbage = strcasestr(buff+11, "expires="))) {
r->new_cookie = strndup(buff+11, garbage - buff - 11);
- } else if (garbage = strcasestr(buff+11, "domain=")) {
+ } else if ((garbage = strcasestr(buff+11, "domain="))) {
r->new_cookie = strndup(buff+11, garbage - buff - 11);
- } else if (garbage = strcasestr(buff+11, "path")) {
+ } else if ((garbage = strcasestr(buff+11, "path"))) {
r->new_cookie = strndup(buff+11, garbage - buff - 11);
- } else if (garbage = strcasestr(buff+11, "secure")) {
+ } else if ((garbage = strcasestr(buff+11, "secure"))) {
r->new_cookie = strndup(buff+11, garbage - buff - 11);
- } else if (garbage = strcasestr(buff+11, "httponly")) {
+ } else if ((garbage = strcasestr(buff+11, "httponly"))) {
r->new_cookie = strndup(buff+11, garbage - buff - 11);
} else {
r->new_cookie = strdup(buff+11);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmcoincoin.git
More information about the Pkg-wmaker-commits
mailing list