]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Cast malloc so that we don't get an error on SunOS
authorTed Lemon <source@isc.org>
Sat, 29 Mar 1997 10:36:24 +0000 (10:36 +0000)
committerTed Lemon <source@isc.org>
Sat, 29 Mar 1997 10:36:24 +0000 (10:36 +0000)
client/clparse.c

index 2decf7b79418f349e0694d0060fd0aa570bc097e..819af6de0486844e5df43ca2dd628128d8a1d8f1 100644 (file)
@@ -42,7 +42,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: clparse.c,v 1.8 1997/03/29 01:23:17 mellon Exp $ Copyright (c) 1997 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: clparse.c,v 1.9 1997/03/29 10:36:24 mellon Exp $ Copyright (c) 1997 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -901,7 +901,8 @@ void parse_option_decl (cfile, options)
                return;
        }
 
-       options [option -> code].data = malloc (hunkix + nul_term);
+       options [option -> code].data =
+               (unsigned char *)malloc (hunkix + nul_term);
        if (!options [option -> code].data)
                error ("out of memory allocating option data.");
        memcpy (options [option -> code].data, hunkbuf, hunkix + nul_term);