[Reconnoiter-devel] [reconnoiter commit] r542 - trunk/src

svn-commit at lists.omniti.com svn-commit at lists.omniti.com
Fri Dec 12 16:37:00 EST 2008


Author: jesus
Date: 2008-12-12 16:36:59 -0500 (Fri, 12 Dec 2008)
New Revision: 542

Modified:
   trunk/src/noit_http.c
   trunk/src/stratcon_realtime_http.c
Log:
fixes, use noit_false instead of false

Modified: trunk/src/noit_http.c
===================================================================
--- trunk/src/noit_http.c	2008-12-12 21:32:46 UTC (rev 541)
+++ trunk/src/noit_http.c	2008-12-12 21:36:59 UTC (rev 542)
@@ -199,7 +199,7 @@
     /* cross bucket */
     if(req->current_input == req->last_input &&
        req->current_offset >= (req->last_input->start + req->last_input->size))
-      return false;
+      return noit_false;
     req->current_offset++;
     inset = req->current_offset - req->current_input->start;
     if(memcmp(req->current_input->buff + req->current_input->start,
@@ -220,7 +220,7 @@
     req->current_offset = req->current_input->start;
     goto restart;
   }
-  if(!mstr) return false;
+  if(!mstr) return noit_false;
   req->current_offset = mstr - req->current_input->buff + REQ_PATSIZE;
  match:
   req->current_request_chain = req->first_input;

Modified: trunk/src/stratcon_realtime_http.c
===================================================================
--- trunk/src/stratcon_realtime_http.c	2008-12-12 21:32:46 UTC (rev 541)
+++ trunk/src/stratcon_realtime_http.c	2008-12-12 21:36:59 UTC (rev 542)
@@ -10,7 +10,7 @@
 #include "utils/noit_log.h"
 #include "jlog/jlog.h"
 #include "noit_jlog_listener.h"
-#include "noit_listener.h"c
+#include "noit_listener.h"
 #include "noit_http.h"
 
 typedef struct {
@@ -39,7 +39,7 @@
   snprintf(buffer, sizeof(buffer), "<script>reconnoiter_realtime_feed(%lu,'%s','%s','%0.3f');</script>\n",
            e->whence.tv_sec * 1000 + e->whence.tv_usec / 1000, "A-UUID", "metric-name", (float)(rand() % 100000) / 1000.0);
   noit_http_response_append(ctx, buffer, strlen(buffer));
-  noit_http_response_flush(ctx, false);
+  noit_http_response_flush(ctx, noit_false);
 
   e->mask = EVENTER_TIMER;
   e->whence.tv_sec += 0;
@@ -75,7 +75,7 @@
     noit_http_response_option_set(ctx, NOIT_HTTP_DEFLATE);
     noit_http_response_header_set(ctx, "Content-Type", "text/html");
     noit_http_response_append(ctx, c, strlen(c));
-    noit_http_response_flush(ctx, false);
+    noit_http_response_flush(ctx, noit_false);
     stratcon_realtime_ticker(NULL, 0, ctx, NULL);
     rc->setup = 1;
   }



More information about the Reconnoiter-devel mailing list