From a659c19c9cb6f9681a57ea44778f08f5d47e97fe Mon Sep 17 00:00:00 2001 From: Marek Lindner Date: Fri, 19 Jun 2009 18:18:51 +0200 Subject: [PATCH] [battools] renaming battools to batctl as suggested by Jacob Marble --- batping.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/batping.c b/batping.c index a571cde..03977bc 100644 --- a/batping.c +++ b/batping.c @@ -49,8 +49,8 @@ void batping_usage() { return; } -void handler( int32_t sig ) { - switch( sig ) { +void handler(int32_t sig) { + switch(sig) { case SIGINT: case SIGTERM: Stop = 1; @@ -116,12 +116,12 @@ int batping_main( int argc, char **argv, struct hashtable_t *hash ) { } } - if ( argc <= found_args ) { + if (argc <= found_args) { + printf("Error - target mac address or host name not specified\n"); batping_usage(); return(EXIT_FAILURE); } - while ( NULL != ( hashit = hash_iterate( hash, hashit ) ) ) { tmp_hosts = (struct hosts *)hashit->bucket->data; -- 2.20.1