--- ansh/src/ansh.c 2011/10/17 20:14:02 1.2 +++ ansh/src/ansh.c 2017/01/22 20:47:59 1.3.2.2 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ - * $Id: ansh.c,v 1.2 2011/10/17 20:14:02 misho Exp $ + * $Id: ansh.c,v 1.3.2.2 2017/01/22 20:47:59 misho Exp $ * ************************************************************************* The ELWIX and AITNET software is distributed under the following @@ -12,7 +12,7 @@ terms: All of the documentation and software included in the ELWIX and AITNET Releases is copyrighted by ELWIX - Sofia/Bulgaria -Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 +Copyright 2004 - 2017 by Michael Pounov . All rights reserved. Redistribution and use in source and binary forms, with or without @@ -74,7 +74,7 @@ main(int argc, char **argv) { char ch, szDev[STRSIZ] = { 0 }; int h, len; - struct io_ether_addr ea; + struct e_ether_addr ea; srandomdev(); do { @@ -88,7 +88,7 @@ main(int argc, char **argv) while ((ch = getopt(argc, argv, "hvut:d:k:")) != -1) switch (ch) { case 't': - Timeout = abs(strtol(optarg, NULL, 0)); + Timeout = abs((int) strtol(optarg, NULL, 0)); break; case 'd': strlcpy(szDev, optarg, sizeof szDev); @@ -113,7 +113,7 @@ main(int argc, char **argv) printf("Error:: not specified mac for connect ...\n"); return 1; } - if (!io_ether_aton(argv[0], &ea)) { + if (!e_ether_aton(argv[0], &ea)) { printf("Error:: invalid mac ...\n"); return 1; }