]> granicus.if.org Git - libevent/commitdiff
r15245@tombo: nickm | 2008-04-18 09:27:50 -0400
authorNick Mathewson <nickm@torproject.org>
Fri, 18 Apr 2008 13:28:00 +0000 (13:28 +0000)
committerNick Mathewson <nickm@torproject.org>
Fri, 18 Apr 2008 13:28:00 +0000 (13:28 +0000)
 Oops; use libevent-internal type instead of uint32_t.

svn:r722

event_tagging.c

index 8e4f383dcc533658891b6d3c240e9dee21589c4c..87016523ef918216a8dc01fa90d5c50ef89da052 100644 (file)
@@ -92,7 +92,7 @@ encode_int_internal(ev_uint8_t *data, ev_uint32_t number)
 {
        int off = 1, nibbles = 0;
 
-       memset(data, 0, sizeof(uint32_t)+1);
+       memset(data, 0, sizeof(ev_uint32_t)+1);
        while (number) {
                if (off & 0x1)
                        data[off/2] = (data[off/2] & 0xf0) | (number & 0x0f);