[nanomsg] Re: Fixing compiler warnings regarding type conversions

  • From: Immanuel Weber <immanuel.weber@xxxxxxxxx>
  • To: nanomsg@xxxxxxxxxxxxx
  • Date: Sat, 19 Oct 2013 11:14:55 +0200

Hi Martin, 

thanks! Didn't wanted to put pressure on you, just thought that patch might be 
gone unnoticed :)

Greetings
Immanuel


Am Samstag, 19. Oktober 2013 um 10:10 schrieb Martin Sustrik:

> Hi Immanuel,
> 
> Applied to master. Thanks!
> 
> Martin
> 
> On 01/10/13 13:34, Immanuel Weber wrote:
> > From 26a1aa25f9ceeac9dc523a417b837117bcfc339b Mon Sep 17 00:00:00 2001
> > From: Immanuel Weber <immanuel.weber@xxxxxxxxxxxxxxxxx 
> > (mailto:immanuel.weber@xxxxxxxxxxxxxxxxx)
> > <mailto:immanuel.weber@xxxxxxxxxxxxxxxxx>>
> > Date: Tue, 1 Oct 2013 13:19:11 +0200
> > Subject: [PATCH] changed nn_chunk_addref parameter n from type int to more
> > consistent type uint32_t
> > 
> > ---
> > src/utils/chunk.c | 3 +--
> > src/utils/chunk.h | 3 ++-
> > 2 files changed, 3 insertions(+), 3 deletions(-)
> > 
> > diff --git a/src/utils/chunk.c b/src/utils/chunk.c
> > index 56708f6..0e5b781 100644
> > --- a/src/utils/chunk.c
> > +++ b/src/utils/chunk.c
> > @@ -25,7 +25,6 @@
> > #include "alloc.h"
> > #include "fast.h"
> > #include "wire.h"
> > -#include "int.h"
> > #include "err.h"
> > #include <string.h>
> > @@ -108,7 +107,7 @@ void nn_chunk_free (void *p)
> > }
> > }
> > -void nn_chunk_addref (void *p, int n)
> > +void nn_chunk_addref (void *p, uint32_t n)
> > {
> > struct nn_chunk *self;
> > diff --git a/src/utils/chunk.h b/src/utils/chunk.h
> > index 67d67cf..0b86636 100644
> > --- a/src/utils/chunk.h
> > +++ b/src/utils/chunk.h
> > @@ -24,6 +24,7 @@
> > #define NN_CHUNK_INCLUDED
> > #include <stddef.h>
> > +#include "int.h"
> > /* Allocates the chunk using the allocation mechanism specified by
> > 'type'. */
> > void *nn_chunk_alloc (size_t size, int type);
> > @@ -33,7 +34,7 @@ void *nn_chunk_alloc (size_t size, int type);
> > void nn_chunk_free (void *p);
> > /* Increases the reference count of the chunk by 'n'. */
> > -void nn_chunk_addref (void *p, int n);
> > +void nn_chunk_addref (void *p, uint32_t n);
> > /* Returns size of the chunk buffer. */
> > size_t nn_chunk_size (void *p);
> > --
> > 1.8.3.msysgit.0
> > 
> 
> 
> 


Other related posts: