You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2009/09/03 15:59:13 UTC

svn commit: r810949 - in /commons/sandbox/runtime/trunk/src/main/native: include/acr_private.h os/unix/main.c port/strlcat.c port/strlcpy.c port/strsignal.c

Author: mturk
Date: Thu Sep  3 13:59:13 2009
New Revision: 810949

URL: http://svn.apache.org/viewvc?rev=810949&view=rev
Log:
Missing included and compile warnings fixes

Modified:
    commons/sandbox/runtime/trunk/src/main/native/include/acr_private.h
    commons/sandbox/runtime/trunk/src/main/native/os/unix/main.c
    commons/sandbox/runtime/trunk/src/main/native/port/strlcat.c
    commons/sandbox/runtime/trunk/src/main/native/port/strlcpy.c
    commons/sandbox/runtime/trunk/src/main/native/port/strsignal.c

Modified: commons/sandbox/runtime/trunk/src/main/native/include/acr_private.h
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/include/acr_private.h?rev=810949&r1=810948&r2=810949&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/include/acr_private.h (original)
+++ commons/sandbox/runtime/trunk/src/main/native/include/acr_private.h Thu Sep  3 13:59:13 2009
@@ -289,6 +289,7 @@
  */
 #define I2V(I)                  ((void *)(ptrdiff_t)(I))
 #define V2I(P)                  ((int)(ptrdiff_t)(P))
+#define V2U(P)                  ((unsigned int)(ptrdiff_t)(P))
 
 #define IS_JOBJECT_NULL(E, O)  \
         (!(O) || ((*(E))->IsSameObject((E), (O), NULL) == JNI_TRUE))

Modified: commons/sandbox/runtime/trunk/src/main/native/os/unix/main.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/unix/main.c?rev=810949&r1=810948&r2=810949&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/os/unix/main.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/os/unix/main.c Thu Sep  3 13:59:13 2009
@@ -181,7 +181,7 @@
             char tn[32];
             JavaVMAttachArgs aa;
 
-            sprintf(tn, "NativeThread-%u", (unsigned int)pthread_self());
+            sprintf(tn, "NativeThread-%u", V2U(pthread_self()));
             aa.version = JNI_VERSION_1_4;
             aa.name    = tn;
             aa.group   = NULL;

Modified: commons/sandbox/runtime/trunk/src/main/native/port/strlcat.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/port/strlcat.c?rev=810949&r1=810948&r2=810949&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/port/strlcat.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/port/strlcat.c Thu Sep  3 13:59:13 2009
@@ -33,6 +33,7 @@
 #include "acr.h"
 #include "acr_private.h"
 #include "acr_arch.h"
+#include "acr_port.h"
 
 #if defined(ACR_WANT_STRLCAT)
 

Modified: commons/sandbox/runtime/trunk/src/main/native/port/strlcpy.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/port/strlcpy.c?rev=810949&r1=810948&r2=810949&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/port/strlcpy.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/port/strlcpy.c Thu Sep  3 13:59:13 2009
@@ -33,6 +33,7 @@
 #include "acr.h"
 #include "acr_private.h"
 #include "acr_arch.h"
+#include "acr_port.h"
 
 #if defined(ACR_WANT_STRLCPY)
 

Modified: commons/sandbox/runtime/trunk/src/main/native/port/strsignal.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/port/strsignal.c?rev=810949&r1=810948&r2=810949&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/port/strsignal.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/port/strsignal.c Thu Sep  3 13:59:13 2009
@@ -23,6 +23,7 @@
 
 #include "acr.h"
 #include "acr_private.h"
+#include "acr_arch.h"
 #include "acr_port.h"
 
 #if defined(ACR_WANT_STRSIGNAL)