sdhcp

simple dhcp client
git clone git://git.2f30.org/sdhcp
Log | Files | Refs | LICENSE

commit a8cbeb12e4df31ea50f5effd25eacfe8145c538e
parent cbf0f211645a92ada263ddff97e08038c9d19299
Author: Michael Forney <mforney@mforney.org>
Date:   Wed, 14 Nov 2018 18:40:33 -0800

Convert cid to char * for strlcpy

Diffstat:
Msdhcp.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sdhcp.c b/sdhcp.c @@ -467,7 +467,7 @@ main(int argc, char *argv[]) if (argc) ifname = argv[0]; /* interface name */ if (argc >= 2) - strlcpy(cid, argv[1], sizeof(cid)); /* client-id */ + strlcpy((char *)cid, argv[1], sizeof(cid)); /* client-id */ memset(&ifreq, 0, sizeof(ifreq)); signal(SIGALRM, nop);