X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fsn_stage.c;h=56512eaea6c10b0abc42124282bf03d9a5e9eb11;hb=c83e7d24774acd90700ae7201ae6c7610dc052d6;hp=5799b7c34254efc72321f5747983f219a89ffb35;hpb=05506d0d82f83add46b22f65b455b87ac5ca7745;p=sort-networks.git diff --git a/src/sn_stage.c b/src/sn_stage.c index 5799b7c..56512ea 100644 --- a/src/sn_stage.c +++ b/src/sn_stage.c @@ -1,6 +1,6 @@ /** - * collectd - src/sn_stage.c - * Copyright (C) 2008 Florian octo Forster + * libsortnetwork - src/sn_stage.c + * Copyright (C) 2008-2010 Florian octo Forster * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -16,7 +16,7 @@ * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * * Authors: - * Florian octo Forster + * Florian octo Forster **/ #ifndef _ISOC99_SOURCE @@ -431,7 +431,7 @@ int sn_stage_serialize (sn_stage_t *s, #define SNPRINTF_OR_FAIL(...) \ status = snprintf (buffer, buffer_size, __VA_ARGS__); \ - if ((status < 1) || (status >= buffer_size)) \ + if ((status < 1) || (((size_t) status) >= buffer_size)) \ return (-1); \ buffer += status; \ buffer_size -= status;