X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=libbb%2Fperror_nomsg.c;h=a157caa1fbee8cafbb0f33a8f78f33366f9c0fd2;hb=1fd1ea4395e520694bd9f8b1dc9e60af6442946d;hp=464cb86c444735f7ded2e7c5eb23657e61b4f80b;hpb=cad5364599eb5062d59e0c397ed638ddd61a8d5d;p=oweals%2Fbusybox.git diff --git a/libbb/perror_nomsg.c b/libbb/perror_nomsg.c index 464cb86c4..a157caa1f 100644 --- a/libbb/perror_nomsg.c +++ b/libbb/perror_nomsg.c @@ -4,27 +4,19 @@ * * Copyright (C) 2003 Manuel Novoa III * - * 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 2 of the License, or - * (at your option) 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, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * + * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. */ -#include -#include +/* gcc warns about a null format string, therefore we provide + * modified definition without "attribute (format)" + * instead of including libbb.h */ +//#include "libbb.h" +#include "platform.h" +extern void bb_perror_msg(const char *s, ...) FAST_FUNC; -extern void bb_perror_nomsg(void) +/* suppress gcc "no previous prototype" warning */ +void FAST_FUNC bb_perror_nomsg(void); +void FAST_FUNC bb_perror_nomsg(void) { - /* Ignore the gcc warning about a null format string. */ - bb_perror_msg(NULL); + bb_perror_msg(0); }