]> rtime.felk.cvut.cz Git - ulut.git/commitdiff
Elimination of some easily fix-able warnings for GCC-4.0.2.
authorppisa <ppisa>
Sat, 29 Oct 2005 22:40:14 +0000 (22:40 +0000)
committerppisa <ppisa>
Sat, 29 Oct 2005 22:40:14 +0000 (22:40 +0000)
There is still bunch of more problematic things related
to the C99 strict aliasing rules.

ulut/ul_dbufmore.c

index 95d032f2e76c575903f5d7f4f637f153ffce07a3..f9b9b26bb4f74b7fcd9fcf76322a722d3cdb2eda 100644 (file)
@@ -114,8 +114,8 @@ int ul_dbuff_set_len(ul_dbuff_t *buf, int new_len)
         ul_dbuff_set_capacity(buf, new_cap);
     }
     if(new_len > buf->capacity) {
-        buf->data = buf->sbuff;
-        strncpy(buf->data, "set_len ERROR", buf->capacity);
+        /*buf->data = buf->sbuff;*/
+        /*strncpy(buf->data, "set_len ERROR", buf->capacity);*/
         new_len = buf->capacity;
     }
     buf->len = new_len;