--- ansh/src/ansh3d.c 2012/05/23 15:41:38 1.3.2.2 +++ ansh/src/ansh3d.c 2017/01/22 20:47:59 1.5.2.2 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ - * $Id: ansh3d.c,v 1.3.2.2 2012/05/23 15:41:38 misho Exp $ + * $Id: ansh3d.c,v 1.5.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, 2012 +Copyright 2004 - 2017 by Michael Pounov . All rights reserved. Redistribution and use in source and binary forms, with or without @@ -121,7 +121,7 @@ hook_error(void *root, void *arg) int main(int argc, char **argv) { - io_sockaddr_t sa; + sockaddr_t sa; struct hostent *host; struct passwd *pass; int fd, h = 0, uid = 0, gid = 0; @@ -157,7 +157,7 @@ main(int argc, char **argv) id = strtol(optarg, NULL, 0); break; case 't': - Timeout = abs(strtol(optarg, NULL, 0)); + Timeout = abs((int) strtol(optarg, NULL, 0)); break; case 'k': strlcpy(Key, optarg, sizeof Key);