]> err.no Git - sope/commitdiff
fixed gcc 4.0 warning
authorhelge <helge@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Sun, 31 Jul 2005 19:35:42 +0000 (19:35 +0000)
committerhelge <helge@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Sun, 31 Jul 2005 19:35:42 +0000 (19:35 +0000)
git-svn-id: http://svn.opengroupware.org/SOPE/trunk@951 e4a50df8-12e2-0310-a44c-efbce7f8a7e3

sope-appserver/mod_ngobjweb/ChangeLog
sope-appserver/mod_ngobjweb/NGBufferedDescriptor.c
sope-appserver/mod_ngobjweb/NGBufferedDescriptor.h

index da4ab1a8a3f69dc436d971bac0956efa4783a148..79e83442b39786b034348b3caec8c2998b864393 100644 (file)
@@ -1,5 +1,7 @@
 2005-07-31  Helge Hess  <helge.hess@opengroupware.org>
 
+       * NGBufferedDescriptor.[hc]: fixed some gcc 4.0 warnings
+
        * added an Xcode 2.1 project for building the adaptor
 
        * GNUmakefile: added a distclean and an install-usr-libexec target
index 2b15cf569f971c2f78d5c869f4d3dc4d1848e93c..7c16dda4ff1c934987c821af553a7c0300a2633d 100644 (file)
@@ -304,7 +304,7 @@ int NGBufferedDescriptor_readChar(NGBufferedDescriptor *self) {
 }
 
 char NGBufferedDescriptor_writeHttpHeader(NGBufferedDescriptor *self,
-                                          const unsigned char *_key,
+                                          const char *_key,
                                           const unsigned char *_value)
 {
   register unsigned int len;
@@ -322,7 +322,8 @@ char NGBufferedDescriptor_writeHttpHeader(NGBufferedDescriptor *self,
      assuming that the certficiate is in base64. To safeguard, we also encode
      % as %25.
   */
-  if (len > 0 && (index(_value, '\n') != NULL || index(_value, '\r') !=NULL)) {
+  if (len > 0 && (index((char *)_value, '\n') != NULL || 
+                 index((char *)_value, '\r') !=NULL)) {
     for (len = 0; _value[len] != '\0'; len++) {
       switch (_value[len]) {
       case '%':
index 038d7805146cdeb555202f2f404fd8035f30e9f6..c3e241756f0f8efc2680dfd4c1b4d69fd333c3b8 100644 (file)
@@ -67,7 +67,7 @@ char NGBufferedDescriptor_safeWrite(NGBufferedDescriptor *self,
 int  NGBufferedDescriptor_readChar(NGBufferedDescriptor *self);
 
 char NGBufferedDescriptor_writeHttpHeader(NGBufferedDescriptor *self,
-                                          const unsigned char *_key,
+                                          const char *_key,
                                           const unsigned char *_value);
 
 #endif