fix printf warning
[oweals/busybox.git] / libbb / xgethostbyname.c
index 258510332df8b1e01236fa261f63468108b3af0f..6b2dff7113a43c54f1892bcfa5e4b28be4d517b2 100644 (file)
@@ -2,7 +2,6 @@
 /*
  * Mini xgethostbyname implementation.
  *
- *
  * Copyright (C) 2001 Matt Kraai <kraai@alumni.carnegiemellon.edu>.
  *
  * This program is free software; you can redistribute it and/or modify
  */
 
 #include <netdb.h>
-extern int h_errno;
-
 #include "libbb.h"
 
+
 struct hostent *xgethostbyname(const char *name)
 {
        struct hostent *retval;
 
        if ((retval = gethostbyname(name)) == NULL)
-               herror_msg_and_die("%s", name);
+               bb_herror_msg_and_die("%s", name);
 
        return retval;
 }