Fix a few compiler warnings.
authorZdeněk Šustr <sustr4@cesnet.cz>
Wed, 22 Feb 2012 16:42:31 +0000 (16:42 +0000)
committerZdeněk Šustr <sustr4@cesnet.cz>
Wed, 22 Feb 2012 16:42:31 +0000 (16:42 +0000)
org.glite.lb.server/src/lb_html.c
org.glite.lb.server/src/lb_proto.c

index aeddbf9..b56e4ab 100644 (file)
@@ -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,
                         "<b>WARNING: L&B statistics are stored in /tmp, please, configure L&B server to make them really persistent!</b><br/><br/>\n");
                 else
-                        asprintf(&head, "");
+                        asprintf(&head, " ");
 
                 asprintf(&out,
                         "<h2>LB Server Usage Statistics</h2>\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)
index e32adab..967a3ff 100644 (file)
@@ -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;