commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r804186 - in /commons/sandbox/runtime/trunk/src/main/native: os/unix/signals.c shared/sbuf.c
Date Fri, 14 Aug 2009 12:24:46 GMT
Author: mturk
Date: Fri Aug 14 12:24:46 2009
New Revision: 804186

URL: http://svn.apache.org/viewvc?rev=804186&view=rev
Log:
Fix compile warnings

Modified:
    commons/sandbox/runtime/trunk/src/main/native/os/unix/signals.c
    commons/sandbox/runtime/trunk/src/main/native/shared/sbuf.c

Modified: commons/sandbox/runtime/trunk/src/main/native/os/unix/signals.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/unix/signals.c?rev=804186&r1=804185&r2=804186&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/os/unix/signals.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/os/unix/signals.c Fri Aug 14 12:24:46 2009
@@ -38,7 +38,7 @@
 #if defined(HPUX11)
 static char *strsignal(int signum)
 {
-    char buf[32];
+    static char buf[32];
     sprintf(buf, "Signal %d", signum);
     return buf;
 }

Modified: commons/sandbox/runtime/trunk/src/main/native/shared/sbuf.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/shared/sbuf.c?rev=804186&r1=804185&r2=804186&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/shared/sbuf.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/shared/sbuf.c Fri Aug 14 12:24:46 2009
@@ -200,7 +200,7 @@
     KASSERT(pos < s->s_size,
         ("attempt to seek past end of sbuf (%d >= %d)", pos, s->s_size));
 
-    if (pos < 0 || pos > s->s_len)
+    if (pos > s->s_len)
         return -1;
     s->s_len = pos;
     return 0;



Mime
View raw message