tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fua...@apache.org
Subject svn commit: r532307 - /tomcat/connectors/trunk/jk/native/common/jk_util.c
Date Wed, 25 Apr 2007 10:43:56 GMT
Author: fuankg
Date: Wed Apr 25 03:43:56 2007
New Revision: 532307

URL: http://svn.apache.org/viewvc?view=rev&rev=532307
Log:
make jk_stat() available for all platforms since its called now unconditional from other files.

Modified:
    tomcat/connectors/trunk/jk/native/common/jk_util.c

Modified: tomcat/connectors/trunk/jk/native/common/jk_util.c
URL: http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_util.c?view=diff&rev=532307&r1=532306&r2=532307
==============================================================================
--- tomcat/connectors/trunk/jk/native/common/jk_util.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_util.c Wed Apr 25 03:43:56 2007
@@ -1391,25 +1391,26 @@
 }
 
 
+int jk_stat(const char *f, struct stat * statbuf)
+{
+  int rc;
 /**
  * i5/OS V5R4 expect filename in ASCII for fopen but required them in EBCDIC for stat()
  */
 #ifdef AS400_UTF8
-
-int jk_stat(const char *f, struct stat * statbuf)
-{
   char *ptr;
-  int rc;
 
   ptr = (char *)malloc(strlen(f) + 1);
   jk_ascii2ebcdic((char *)f, ptr);
   rc = stat(ptr, statbuf);
   free(ptr);
+#else
+  rc = stat(f, statbuf);
+#endif
 
   return (rc);
 }
 
-#endif
 
 int jk_file_exists(const char *f)
 {



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message