diff options
author | swhite <swhite@1faa4e14-9dd3-4be0-9f0e-ffe519881164> | 2004-04-13 13:42:54 +0000 |
---|---|---|
committer | swhite <swhite@1faa4e14-9dd3-4be0-9f0e-ffe519881164> | 2004-04-13 13:42:54 +0000 |
commit | 310f5363afe8ed31b6381ff002991d5c7cfa6d96 (patch) | |
tree | 8915b41c6318d49e0577f63e4cce0cad2cdcdaad /src/Steer.c | |
parent | 373f2b276ec87294bb96e5b148972303308f7763 (diff) |
Made HTTPD to correctly describe interface by INCLUDE HEADER mechanism.
Changed internal names of
http_Auth.h
http_Cookies.h
http_Steer.h
http_Content.h
so that HTTPD thorn developers will be required to use this interface,
rather than incorrectly explicitly including the source header files.
* Protected SString against C++ name mangling
* Gave exported functions the HTTP_ prefix
* Wrote doc/Content.h
* Fixed bug that disabled some steering functionality
git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@192 1faa4e14-9dd3-4be0-9f0e-ffe519881164
Diffstat (limited to 'src/Steer.c')
-rw-r--r-- | src/Steer.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Steer.c b/src/Steer.c index 8556777..4d2c379 100644 --- a/src/Steer.c +++ b/src/Steer.c @@ -29,7 +29,7 @@ #include "cctk_Parameter.h" #endif -#include "http_Steer.h" +#include "Steer.h" static const char *rcsid = "$Header$"; @@ -84,7 +84,7 @@ static pthread_mutex_t steer_mutex = PTHREAD_MUTEX_INITIALIZER; @@*/ int HTTP_SteerQueue(const char *thorn, const char *parameter, const char *value) { - int retval = -1; + int retval = 0; int buffer_length = 0; int parameter_length = 0; @@ -105,8 +105,9 @@ int HTTP_SteerQueue(const char *thorn, const char *parameter, const char *value) { queuebuffer = tmp; queuebuffer_size = buffer_length+parameter_length+1; - retval = 0; } + else + retval = -1; } if(!retval) |