X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fxalloc.h;h=397f7b0e19bfce88f8034024547278bb721b32ad;hp=42d0d9554adfe6ebf3ba562d7f6be9459a70c702;hb=5b07039b0712bee0f19749d63116a10fb08a2d8b;hpb=9b9230a0a79c670b86f54fadd2807b864ff9d91f diff --git a/src/xalloc.h b/src/xalloc.h index 42d0d955..397f7b0e 100644 --- a/src/xalloc.h +++ b/src/xalloc.h @@ -1,7 +1,7 @@ /* xalloc.h -- malloc and related fuctions with out of memory checking Copyright (C) 1990, 91, 92, 93, 94, 95, 96, 97 Free Software Foundation, Inc. - Copyright (C) 2011 Guus Sliepen + Copyright (C) 2011-2013 Guus Sliepen 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 @@ -27,7 +27,7 @@ static inline void *xmalloc(size_t n) { return p; } -static inline void *xmalloc_and_zero(size_t n) { +static inline void *xzalloc(size_t n) { void *p = calloc(1, n); if(!p) abort();