From 2496fb5bb9d63de2641d5a080d9b045f912ea7bc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zden=C4=9Bk=20=C5=A0ustr?= Date: Wed, 22 Feb 2012 16:42:31 +0000 Subject: [PATCH] Fix a few compiler warnings. --- org.glite.lb.server/src/lb_html.c | 5 ++++- org.glite.lb.server/src/lb_proto.c | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/org.glite.lb.server/src/lb_html.c b/org.glite.lb.server/src/lb_html.c index aeddbf9..b56e4ab 100644 --- a/org.glite.lb.server/src/lb_html.c +++ b/org.glite.lb.server/src/lb_html.c @@ -496,6 +496,8 @@ static int replace_substr(char **text, char *s1, char *s2){ free(*text); *text = out; + + return 0; } int edg_wll_WSDLOutput(edg_wll_Context ctx UNUSED_VAR, char **message, char *filename){ @@ -559,7 +561,7 @@ int edg_wll_StatisticsToHTML(edg_wll_Context ctx, char **message) { asprintf(&head, "WARNING: L&B statistics are stored in /tmp, please, configure L&B server to make them really persistent!

\n"); else - asprintf(&head, ""); + asprintf(&head, " "); asprintf(&out, "

LB Server Usage Statistics

\n" @@ -621,6 +623,7 @@ int edg_wll_StatisticsToHTML(edg_wll_Context ctx, char **message) { } *message = out; + return 0; } char *edg_wll_ErrorToHTML(edg_wll_Context ctx,int code) diff --git a/org.glite.lb.server/src/lb_proto.c b/org.glite.lb.server/src/lb_proto.c index e32adab..967a3ff 100644 --- a/org.glite.lb.server/src/lb_proto.c +++ b/org.glite.lb.server/src/lb_proto.c @@ -740,8 +740,8 @@ edg_wll_ErrorCode edg_wll_Proto(edg_wll_Context ctx, else if (*requestPTR=='/' && requestPTR[1] != '?' && strncmp(requestPTR, "/RSS:", strlen("/RSS:")) && ( strncmp(requestPTR, "/NOTIF", strlen("/NOTIF")) - || *(requestPTR+strlen("/NOTIF")) != ':' - && !isspace(*(requestPTR+strlen("/NOTIF")))) + || (*(requestPTR+strlen("/NOTIF")) != ':' + && !isspace(*(requestPTR+strlen("/NOTIF"))))) ) { edg_wlc_JobId jobId = NULL; char *pom1,*fullid = NULL; -- 1.8.2.3