X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fsafe-alloc.c;h=c37dd08ac76402267feadac4e6eb22cd4fc2c760;hb=067d1f10627e25eb1af323b56b6dbc7d8e74ba57;hp=fca8754c8cd742deb4194d9baa7b8766f0fda3fc;hpb=032310a69161066be953842f2dc69efae2f745a1;p=gnulib.git diff --git a/lib/safe-alloc.c b/lib/safe-alloc.c index fca8754c8..c37dd08ac 100644 --- a/lib/safe-alloc.c +++ b/lib/safe-alloc.c @@ -1,34 +1,31 @@ -/* - * safe-alloc.c: safer memory allocation - * - * Copyright (C) 2009 Free Software Foundation, Inc. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - */ +/* safe-alloc.c: safer memory allocation + + Copyright (C) 2009, 2010 Free Software Foundation, Inc. + + 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 + Free Software Foundation; either version 3 of the License, or any + later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ /* Written by Daniel Berrange , 2008 */ #include +/* Specification. */ +#include "safe-alloc.h" + #include #include #include -#include "safe-alloc.h" - /* Return 1 if an array of N objects, each of size S, cannot exist due to size arithmetic overflow. S must be positive and N must be