]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Port needed cast to isc_uint16_t as it is a 16 bit quantity
authorDanny Mayer <source@isc.org>
Thu, 1 Aug 2002 03:28:01 +0000 (03:28 +0000)
committerDanny Mayer <source@isc.org>
Thu, 1 Aug 2002 03:28:01 +0000 (03:28 +0000)
bin/dig/nslookup.c

index a9bd5c9b78ed7791c3d1a441e2d693686bcb7c57..0ba161a68cf1e7c3e050056e91279fff4af25f55 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: nslookup.c,v 1.97 2002/07/25 05:46:07 marka Exp $ */
+/* $Id: nslookup.c,v 1.98 2002/08/01 03:28:01 mayer Exp $ */
 
 #include <config.h>
 
@@ -539,7 +539,7 @@ set_port(const char *value) {
        isc_uint32_t n;
        isc_result_t result = parse_uint(&n, value, 65535, "port");
        if (result == ISC_R_SUCCESS)
-               port = n;
+               port = (isc_uint16_t) n;
 }
 
 static void