]> err.no Git - sope/commitdiff
fixed some gcc 4.0 warnings
authorhelge <helge@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Sun, 31 Jul 2005 19:11:07 +0000 (19:11 +0000)
committerhelge <helge@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Sun, 31 Jul 2005 19:11:07 +0000 (19:11 +0000)
improved makefile
added Xcode project

git-svn-id: http://svn.opengroupware.org/SOPE/trunk@950 e4a50df8-12e2-0310-a44c-efbce7f8a7e3

sope-appserver/mod_ngobjweb/ChangeLog
sope-appserver/mod_ngobjweb/GNUmakefile
sope-appserver/mod_ngobjweb/NGBufferedDescriptor.c
sope-appserver/mod_ngobjweb/mod_ngobjweb.xcodeproj/project.pbxproj [new file with mode: 0644]

index 65224387334063583f8951f81821c05a8c81e4a6..da4ab1a8a3f69dc436d971bac0956efa4783a148 100644 (file)
@@ -1,3 +1,11 @@
+2005-07-31  Helge Hess  <helge.hess@opengroupware.org>
+
+       * added an Xcode 2.1 project for building the adaptor
+
+       * GNUmakefile: added a distclean and an install-usr-libexec target
+
+       * NGBufferedDescriptor.c: fixed some gcc 4.0 warnings
+
 2005-04-15  Helge Hess  <helge.hess@skyrix.com>
 
        * handler.c: deliver Apache SSL environment as HTTP headers, either
index 9ee5de52641669833838e43eeb2f477fdff800b9..c9fafeec3cf40e6e7fe7803ad23ca6257bc214fc 100644 (file)
@@ -77,11 +77,17 @@ all :: $(product)
 clean :: 
        rm -f *.o $(product) *.so *~
 
+distclean :: clean
+       
+
 apache-dir :
        $(MKDIRS) $(GNUSTEP_INSTALLATION_DIR)
 
 install :: apache-dir all
        $(INSTALL_PROGRAM) $(product) $(GNUSTEP_INSTALLATION_DIR)
 
+install-usr-libexec :: all
+       $(INSTALL_PROGRAM) $(product) /usr/libexec/httpd/
+
 $(product) : $(OFILES)
        $(LD) $(LDFLAGS) -o $@ $(OFILES) $(EXTRA_LDFLAGS)
index 6f54cf36591d5e945802c286ce6d3a737c373327..2b15cf569f971c2f78d5c869f4d3dc4d1848e93c 100644 (file)
@@ -309,13 +309,13 @@ char NGBufferedDescriptor_writeHttpHeader(NGBufferedDescriptor *self,
 {
   register unsigned int len;
   
-  if (!NGBufferedDescriptor_safeWrite(self, _key, strlen(_key)))
+  if (!NGBufferedDescriptor_safeWrite(self, _key, strlen((char *)_key)))
     return 0;
   
   if (!NGBufferedDescriptor_safeWrite(self, ": ", 2))
     return 0;
   
-  len = strlen(_value);
+  len = strlen((char *)_value);
   
   /*
      Required for deliverying certificates, we encode \n and \r as %10 and %13
diff --git a/sope-appserver/mod_ngobjweb/mod_ngobjweb.xcodeproj/project.pbxproj b/sope-appserver/mod_ngobjweb/mod_ngobjweb.xcodeproj/project.pbxproj
new file mode 100644 (file)
index 0000000..50a8ef3
--- /dev/null
@@ -0,0 +1,266 @@
+// !$*UTF8*$!
+{
+       archiveVersion = 1;
+       classes = {
+       };
+       objectVersion = 42;
+       objects = {
+
+/* Begin PBXFileReference section */
+               E822B876089D54600041E72D /* 500mod_ngobjweb.info */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = 500mod_ngobjweb.info; sourceTree = "<group>"; };
+               E822B877089D54600041E72D /* apversion.sh */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.sh; path = apversion.sh; sourceTree = "<group>"; };
+               E822B878089D54600041E72D /* ChangeLog */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = ChangeLog; sourceTree = "<group>"; };
+               E822B879089D54600041E72D /* CHANGES */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = CHANGES; sourceTree = "<group>"; };
+               E822B87A089D54600041E72D /* common.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = common.h; sourceTree = "<group>"; };
+               E822B87B089D54600041E72D /* config.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = config.c; sourceTree = "<group>"; };
+               E822B87C089D54600041E72D /* COPYRIGHT */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = COPYRIGHT; sourceTree = "<group>"; };
+               E822B87D089D54600041E72D /* globals.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = globals.c; sourceTree = "<group>"; };
+               E822B87E089D54600041E72D /* GNUmakefile */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = GNUmakefile; sourceTree = "<group>"; };
+               E822B87F089D54600041E72D /* handler.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = handler.c; sourceTree = "<group>"; };
+               E822B880089D54600041E72D /* httpd.conf */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = httpd.conf; sourceTree = "<group>"; };
+               E822B881089D54600041E72D /* NGBufferedDescriptor.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = NGBufferedDescriptor.c; sourceTree = "<group>"; };
+               E822B882089D54600041E72D /* NGBufferedDescriptor.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NGBufferedDescriptor.h; sourceTree = "<group>"; };
+               E822B883089D54600041E72D /* ngobjweb_module.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = ngobjweb_module.c; sourceTree = "<group>"; };
+               E822B884089D54600041E72D /* README */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = README; sourceTree = "<group>"; };
+               E822B885089D54600041E72D /* scanhttp.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = scanhttp.c; sourceTree = "<group>"; };
+               E822B886089D54600041E72D /* skyrix.conf */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = skyrix.conf; sourceTree = "<group>"; };
+               E822B887089D54600041E72D /* sns.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = sns.c; sourceTree = "<group>"; };
+/* End PBXFileReference section */
+
+/* Begin PBXGroup section */
+               E822B86B089D544D0041E72D = {
+                       isa = PBXGroup;
+                       children = (
+                               E822B884089D54600041E72D /* README */,
+                               E822B878089D54600041E72D /* ChangeLog */,
+                               E822B879089D54600041E72D /* CHANGES */,
+                               E822B87C089D54600041E72D /* COPYRIGHT */,
+                               E822B87E089D54600041E72D /* GNUmakefile */,
+                               E822B876089D54600041E72D /* 500mod_ngobjweb.info */,
+                               E822B877089D54600041E72D /* apversion.sh */,
+                               E822B888089D54720041E72D /* src */,
+                               E822B889089D549F0041E72D /* config */,
+                       );
+                       sourceTree = "<group>";
+               };
+               E822B888089D54720041E72D /* src */ = {
+                       isa = PBXGroup;
+                       children = (
+                               E822B87A089D54600041E72D /* common.h */,
+                               E822B87F089D54600041E72D /* handler.c */,
+                               E822B87B089D54600041E72D /* config.c */,
+                               E822B87D089D54600041E72D /* globals.c */,
+                               E822B881089D54600041E72D /* NGBufferedDescriptor.c */,
+                               E822B882089D54600041E72D /* NGBufferedDescriptor.h */,
+                               E822B883089D54600041E72D /* ngobjweb_module.c */,
+                               E822B885089D54600041E72D /* scanhttp.c */,
+                               E822B887089D54600041E72D /* sns.c */,
+                       );
+                       name = src;
+                       sourceTree = "<group>";
+               };
+               E822B889089D549F0041E72D /* config */ = {
+                       isa = PBXGroup;
+                       children = (
+                               E822B880089D54600041E72D /* httpd.conf */,
+                               E822B886089D54600041E72D /* skyrix.conf */,
+                       );
+                       name = config;
+                       sourceTree = "<group>";
+               };
+/* End PBXGroup section */
+
+/* Begin PBXLegacyTarget section */
+               E822B88A089D55B60041E72D /* mod_ngobjweb */ = {
+                       isa = PBXLegacyTarget;
+                       buildArgumentsString = "$(ACTION)";
+                       buildConfigurationList = E822B88B089D55C00041E72D /* Build configuration list for PBXLegacyTarget "mod_ngobjweb" */;
+                       buildPhases = (
+                       );
+                       buildSettings = {
+                               OPTIMIZATION_CFLAGS = "";
+                               OTHER_CFLAGS = "";
+                               OTHER_LDFLAGS = "";
+                               OTHER_REZFLAGS = "";
+                               PRODUCT_NAME = mod_ngobjweb;
+                               SECTORDER_FLAGS = "";
+                               WARNING_CFLAGS = (
+                                       "-Wmost",
+                                       "-Wno-four-char-constants",
+                                       "-Wno-unknown-pragmas",
+                               );
+                       };
+                       buildToolPath = /usr/bin/make;
+                       dependencies = (
+                       );
+                       name = mod_ngobjweb;
+                       passBuildSettingsInEnvironment = 1;
+                       productName = mod_ngobjweb;
+               };
+               E822B8DF089D56F70041E72D /* install */ = {
+                       isa = PBXLegacyTarget;
+                       buildArgumentsString = "install-usr-libexec";
+                       buildConfigurationList = E822B8E0089D57210041E72D /* Build configuration list for PBXLegacyTarget "install" */;
+                       buildPhases = (
+                       );
+                       buildSettings = {
+                               OPTIMIZATION_CFLAGS = "";
+                               OTHER_CFLAGS = "";
+                               OTHER_LDFLAGS = "";
+                               OTHER_REZFLAGS = "";
+                               PRODUCT_NAME = install;
+                               SECTORDER_FLAGS = "";
+                               WARNING_CFLAGS = (
+                                       "-Wmost",
+                                       "-Wno-four-char-constants",
+                                       "-Wno-unknown-pragmas",
+                               );
+                       };
+                       buildToolPath = /usr/bin/make;
+                       buildWorkingDirectory = "";
+                       dependencies = (
+                       );
+                       name = install;
+                       passBuildSettingsInEnvironment = 1;
+                       productName = install;
+               };
+/* End PBXLegacyTarget section */
+
+/* Begin PBXProject section */
+               E822B86D089D544D0041E72D /* Project object */ = {
+                       isa = PBXProject;
+                       buildConfigurationList = E822B86E089D544D0041E72D /* Build configuration list for PBXProject "mod_ngobjweb" */;
+                       buildStyles = (
+                       );
+                       hasScannedForEncodings = 0;
+                       mainGroup = E822B86B089D544D0041E72D;
+                       projectDirPath = "";
+                       targets = (
+                               E822B88A089D55B60041E72D /* mod_ngobjweb */,
+                               E822B8DF089D56F70041E72D /* install */,
+                       );
+               };
+/* End PBXProject section */
+
+/* Begin XCBuildConfiguration section */
+               E822B86F089D544D0041E72D /* Debug */ = {
+                       isa = XCBuildConfiguration;
+                       buildSettings = {
+                               COPY_PHASE_STRIP = NO;
+                       };
+                       name = Debug;
+               };
+               E822B870089D544D0041E72D /* Release */ = {
+                       isa = XCBuildConfiguration;
+                       buildSettings = {
+                               COPY_PHASE_STRIP = YES;
+                       };
+                       name = Release;
+               };
+               E822B88C089D55C00041E72D /* Debug */ = {
+                       isa = XCBuildConfiguration;
+                       buildSettings = {
+                               COPY_PHASE_STRIP = NO;
+                               GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
+                               OPTIMIZATION_CFLAGS = "";
+                               OTHER_CFLAGS = "";
+                               OTHER_LDFLAGS = "";
+                               OTHER_REZFLAGS = "";
+                               PRODUCT_NAME = mod_ngobjweb;
+                               SECTORDER_FLAGS = "";
+                               WARNING_CFLAGS = (
+                                       "-Wmost",
+                                       "-Wno-four-char-constants",
+                                       "-Wno-unknown-pragmas",
+                               );
+                       };
+                       name = Debug;
+               };
+               E822B88D089D55C00041E72D /* Release */ = {
+                       isa = XCBuildConfiguration;
+                       buildSettings = {
+                               COPY_PHASE_STRIP = YES;
+                               GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
+                               OPTIMIZATION_CFLAGS = "";
+                               OTHER_CFLAGS = "";
+                               OTHER_LDFLAGS = "";
+                               OTHER_REZFLAGS = "";
+                               PRODUCT_NAME = mod_ngobjweb;
+                               SECTORDER_FLAGS = "";
+                               WARNING_CFLAGS = (
+                                       "-Wmost",
+                                       "-Wno-four-char-constants",
+                                       "-Wno-unknown-pragmas",
+                               );
+                       };
+                       name = Release;
+               };
+               E822B8E1089D57210041E72D /* Debug */ = {
+                       isa = XCBuildConfiguration;
+                       buildSettings = {
+                               COPY_PHASE_STRIP = NO;
+                               GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
+                               OPTIMIZATION_CFLAGS = "";
+                               OTHER_CFLAGS = "";
+                               OTHER_LDFLAGS = "";
+                               OTHER_REZFLAGS = "";
+                               PRODUCT_NAME = install;
+                               SECTORDER_FLAGS = "";
+                               WARNING_CFLAGS = (
+                                       "-Wmost",
+                                       "-Wno-four-char-constants",
+                                       "-Wno-unknown-pragmas",
+                               );
+                       };
+                       name = Debug;
+               };
+               E822B8E2089D57210041E72D /* Release */ = {
+                       isa = XCBuildConfiguration;
+                       buildSettings = {
+                               COPY_PHASE_STRIP = YES;
+                               GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
+                               OPTIMIZATION_CFLAGS = "";
+                               OTHER_CFLAGS = "";
+                               OTHER_LDFLAGS = "";
+                               OTHER_REZFLAGS = "";
+                               PRODUCT_NAME = install;
+                               SECTORDER_FLAGS = "";
+                               WARNING_CFLAGS = (
+                                       "-Wmost",
+                                       "-Wno-four-char-constants",
+                                       "-Wno-unknown-pragmas",
+                               );
+                       };
+                       name = Release;
+               };
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+               E822B86E089D544D0041E72D /* Build configuration list for PBXProject "mod_ngobjweb" */ = {
+                       isa = XCConfigurationList;
+                       buildConfigurations = (
+                               E822B86F089D544D0041E72D /* Debug */,
+                               E822B870089D544D0041E72D /* Release */,
+                       );
+                       defaultConfigurationIsVisible = 0;
+               };
+               E822B88B089D55C00041E72D /* Build configuration list for PBXLegacyTarget "mod_ngobjweb" */ = {
+                       isa = XCConfigurationList;
+                       buildConfigurations = (
+                               E822B88C089D55C00041E72D /* Debug */,
+                               E822B88D089D55C00041E72D /* Release */,
+                       );
+                       defaultConfigurationIsVisible = 0;
+               };
+               E822B8E0089D57210041E72D /* Build configuration list for PBXLegacyTarget "install" */ = {
+                       isa = XCConfigurationList;
+                       buildConfigurations = (
+                               E822B8E1089D57210041E72D /* Debug */,
+                               E822B8E2089D57210041E72D /* Release */,
+                       );
+                       defaultConfigurationIsVisible = 0;
+               };
+/* End XCConfigurationList section */
+       };
+       rootObject = E822B86D089D544D0041E72D /* Project object */;
+}