Commit a659c19c authored by Marek Lindner's avatar Marek Lindner

[battools] renaming battools to batctl as suggested by Jacob Marble

parent 5b06d9f9
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment