axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mili...@apache.org
Subject svn commit: r749967 - in /webservices/axis2/trunk/c: tools/tcpmon/src/tcpmon.c util/src/dir_handler.c util/test/allocator/allocator_test.c
Date Wed, 04 Mar 2009 11:26:41 GMT
Author: milinda
Date: Wed Mar  4 11:26:41 2009
New Revision: 749967

URL: http://svn.apache.org/viewvc?rev=749967&view=rev
Log:
Fixing compilation issue on following GCC version with configuration specified:
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.3.2-1ubuntu12' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --with-system-zlib
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3
--program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr
--enable-targets=all --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu
--target=i486-linux-gnu
Thread model: posix
gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu12)


Modified:
    webservices/axis2/trunk/c/tools/tcpmon/src/tcpmon.c
    webservices/axis2/trunk/c/util/src/dir_handler.c
    webservices/axis2/trunk/c/util/test/allocator/allocator_test.c

Modified: webservices/axis2/trunk/c/tools/tcpmon/src/tcpmon.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/tools/tcpmon/src/tcpmon.c?rev=749967&r1=749966&r2=749967&view=diff
==============================================================================
--- webservices/axis2/trunk/c/tools/tcpmon/src/tcpmon.c (original)
+++ webservices/axis2/trunk/c/tools/tcpmon/src/tcpmon.c Wed Mar  4 11:26:41 2009
@@ -659,7 +659,7 @@
                     seek_len = (int)(tmp2 - buffer) + offset - read_len;
                     if (seek_len > 0)
                     {
-                        fread(buffer, sizeof(char), seek_len, file);
+                        read_len = fread(buffer, sizeof(char), seek_len, file);
                     }
                     seek_len = 0;
                 }

Modified: webservices/axis2/trunk/c/util/src/dir_handler.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/src/dir_handler.c?rev=749967&r1=749966&r2=749967&view=diff
==============================================================================
--- webservices/axis2/trunk/c/util/src/dir_handler.c (original)
+++ webservices/axis2/trunk/c/util/src/dir_handler.c Wed Mar  4 11:26:41 2009
@@ -190,6 +190,7 @@
     int i = 0;
     struct dirent **files = NULL;
     char cwd[500];
+    int chdir_result = 0;
 
     /**FIXME:
      * This magic number 500 was selected as a temperary solution. It has to be
@@ -204,13 +205,13 @@
         exit(1);
 
     /* pathname is path of services directory or modules directory. */
-    AXIS2_CHDIR(pathname);
+    chdir_result =  AXIS2_CHDIR(pathname);
 #ifdef AXIS2_ARCHIVE_ENABLED
     axis2_archive_extract();
 #endif
 
     count = AXIS2_SCANDIR(pathname, &files, dir_select, AXIS2_ALPHASORT);
-    AXIS2_CHDIR(cwd);
+    chdir_result = AXIS2_CHDIR(cwd);
 
     /* If no files found, make a non-selectable menu item */
     if (count <= 0)

Modified: webservices/axis2/trunk/c/util/test/allocator/allocator_test.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/test/allocator/allocator_test.c?rev=749967&r1=749966&r2=749967&view=diff
==============================================================================
--- webservices/axis2/trunk/c/util/test/allocator/allocator_test.c (original)
+++ webservices/axis2/trunk/c/util/test/allocator/allocator_test.c Wed Mar  4 11:26:41 2009
@@ -16,6 +16,7 @@
       unsigned char buffer[1024];
       FILE *in = fopen("test","rb");
       FILE *out = fopen("test.doc","w");
+      int fwrite_result = 0;
 
       if (!(in && out))
       {
@@ -25,7 +26,7 @@
 
       while((plain_binary_len = fread(buffer,1,sizeof(buffer),in)) > 0)
       {
-          fwrite(buffer,1,plain_binary_len,out);
+          fwrite_result = fwrite(buffer,1,plain_binary_len,out);
       }
 
       fclose(in);



Mime
View raw message