2001-05-16 21:10:51 +05:30
|
|
|
/* vi: set sw=4 ts=4: */
|
|
|
|
/*
|
|
|
|
* Utility routines.
|
|
|
|
*
|
2004-03-15 13:59:22 +05:30
|
|
|
* Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
|
2001-05-16 21:10:51 +05:30
|
|
|
*
|
2006-07-10 17:11:19 +05:30
|
|
|
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
|
2001-05-16 21:10:51 +05:30
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <netdb.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
#include "libbb.h"
|
|
|
|
|
2001-10-18 09:41:39 +05:30
|
|
|
|
2006-03-07 02:17:33 +05:30
|
|
|
void bb_vherror_msg(const char *s, va_list p)
|
2001-05-16 21:10:51 +05:30
|
|
|
{
|
|
|
|
if(s == 0)
|
|
|
|
s = "";
|
2003-03-19 14:43:01 +05:30
|
|
|
bb_verror_msg(s, p);
|
2001-05-16 21:10:51 +05:30
|
|
|
if (*s)
|
2001-05-17 19:49:05 +05:30
|
|
|
fputs(": ", stderr);
|
|
|
|
herror("");
|
2001-05-16 21:10:51 +05:30
|
|
|
}
|