changeset 1722:2e33cfa6a872

- Correct some compiler warnings
author Ralf Ertzinger <ralf@skytale.net>
date Mon, 17 Sep 2007 22:10:21 +0200
parents 2e60ba395140
children ff587f35467a eaa8a5747628
files src/neon/debug.h src/neon/neon.c src/neon/rb.h
diffstat 3 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/neon/debug.h	Mon Sep 17 21:55:52 2007 +0200
+++ b/src/neon/debug.h	Mon Sep 17 22:10:21 2007 +0200
@@ -22,7 +22,7 @@
 
 #define _ENTER _DEBUG("enter")
 #define _LEAVE _DEBUG("leave"); return
-#define _MESSAGE(tag, string, ...) do { fprintf(stderr, "%s: libneontrans.so: %s:%d (%s): " string "\n", \
+#define _MESSAGE(tag, string, ...) do { fprintf(stderr, "%s: libneonsrc.so: %s:%d (%s): " string "\n", \
     tag, __FILE__, __LINE__, __func__, ##__VA_ARGS__); } while(0)
 
 #define _ERROR(...) _MESSAGE("ERROR", __VA_ARGS__)
--- a/src/neon/neon.c	Mon Sep 17 21:55:52 2007 +0200
+++ b/src/neon/neon.c	Mon Sep 17 22:10:21 2007 +0200
@@ -228,6 +228,7 @@
                 _ERROR("Could not parse redirect response");
                 _LEAVE -1;
             }
+            _LEAVE 1;
             break;
 
         default:
--- a/src/neon/rb.h	Mon Sep 17 21:55:52 2007 +0200
+++ b/src/neon/rb.h	Mon Sep 17 22:10:21 2007 +0200
@@ -28,5 +28,6 @@
 void reset_rb(struct ringbuf* rb);
 unsigned int free_rb(struct ringbuf* rb);
 unsigned int used_rb(struct ringbuf* rb);
+void destroy_rb(struct ringbuf* rb);
 
 #endif