summaryrefslogtreecommitdiff
path: root/extra/resolveip.c
diff options
context:
space:
mode:
Diffstat (limited to 'extra/resolveip.c')
-rw-r--r--extra/resolveip.c38
1 files changed, 17 insertions, 21 deletions
diff --git a/extra/resolveip.c b/extra/resolveip.c
index 8b2644ab423..f540354edc3 100644
--- a/extra/resolveip.c
+++ b/extra/resolveip.c
@@ -1,24 +1,23 @@
-/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public
- License as published by the Free Software Foundation; either
- version 2 of the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful,
+/* Copyright (C) 2000 MySQL AB
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public
- License along with this library; if not, write to the Free
- Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
- MA 02111-1307, USA */
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
/* Resolves IP's to hostname and hostnames to IP's */
#define RESOLVE_VERSION "2.0"
-
+
#include <my_global.h>
#include <m_ctype.h>
#include <my_net.h>
@@ -55,7 +54,7 @@ static void print_version(void)
{
printf("%s Ver %s, for %s (%s)\n",my_progname,RESOLVE_VERSION,
SYSTEM_TYPE,MACHINE_TYPE);
-}
+}
static void usage(void)
@@ -141,7 +140,7 @@ int main(int argc, char **argv)
puts("Old-Bcast");
continue;
}
-
+
hpaddr = gethostbyaddr((char*) &(taddr), sizeof(struct in_addr),AF_INET);
if (hpaddr)
{
@@ -203,6 +202,3 @@ int main(int argc, char **argv)
}
exit(error);
}
-
-
-