]> sourceware.org Git - systemtap.git/commitdiff
* control.c: Explicit type cast for picky compilers.
authorwcohen <wcohen>
Wed, 16 May 2007 13:47:23 +0000 (13:47 +0000)
committerwcohen <wcohen>
Wed, 16 May 2007 13:47:23 +0000 (13:47 +0000)
runtime/transport/ChangeLog
runtime/transport/control.c

index 49643566f63395f10609a761d2a416e71be0721d..41b3fa411e9f7109782a0118ad5aa6de9b0c2c64 100644 (file)
@@ -1,3 +1,7 @@
+2007-05-16  Will Cohen  <wcohen@redhat.com>
+
+       * control.c: Explicit type cast for picky compilers.
+
 2007-05-15  Martin Hunt  <hunt@redhat.com>
 
        * control.c: Change default buffer number and size.
index 34571e9aced6bdc607612d456e775e11be12b2cf..dd927afd73b54868813d724dc8b21379373495be 100644 (file)
@@ -139,7 +139,7 @@ static int _stp_ctl_write (int type, void *data, unsigned len)
        spin_unlock_irqrestore(&_stp_pool_lock, flags);
 
        bptr->type = type;
-       memcpy(bptr->buf, data, min(len, sizeof(bptr->buf)));
+       memcpy(bptr->buf, data, min((size_t) len, sizeof(bptr->buf)));
        bptr->len = len;
        
        /* put it on the pool of ready buffers */
This page took 0.097385 seconds and 5 git commands to generate.