← Commit list

b88868276

Eric Andersen
Eric Andersen
2002-03-21
FAILED Duration: 354s

Subject

Doh! I broke ping when removing the nested function. This patch from vodz fixes it again.

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

networking/ping.c+4 -4
@@ -1,6 +1,6 @@
/* vi: set sw=4 ts=4: */
/*
- * $Id: ping.c,v 1.49 2002/03/20 11:59:28 andersen Exp $
+ * $Id: ping.c,v 1.50 2002/03/21 14:04:43 andersen Exp $
* Mini ping implementation for busybox
*
* Copyright (C) 1999 by Randolph Chung <[email protected]>
@@ -176,9 +176,9 @@ static int in_cksum(unsigned short *buf, int sz)
/* simple version */
#ifndef CONFIG_FEATURE_FANCY_PING
static char *hostname = NULL;
-void noresp(int ign)
+static void noresp(int ign)
{
- printf("No response from %s\n", h->h_name);
+ printf("No response from %s\n", hostname);
exit(0);
}
@@ -232,7 +232,7 @@ static void ping(const char *host)
break;
}
}
- printf("%s is alive!\n", h->h_name);
+ printf("%s is alive!\n", hostname);
return;
}