aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2020-01-21 15:02:14 +0400
committerMarc-André Lureau <marcandre.lureau@redhat.com>2020-01-22 13:16:24 +0400
commita4457cf5e19eca116efb78b65edc36fcc8c76ba2 (patch)
tree524d09ab0c44d1f3790c0b291232fc00c4b569da /src
parent8ecd026e04edaa80a0b264e786a9bb2ee380b31b (diff)
downloadslirp-a4457cf5e19eca116efb78b65edc36fcc8c76ba2.zip
slirp-a4457cf5e19eca116efb78b65edc36fcc8c76ba2.tar.gz
slirp-a4457cf5e19eca116efb78b65edc36fcc8c76ba2.tar.bz2
bootp: remove extra cast
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Diffstat (limited to 'src')
-rw-r--r--src/bootp.c2
-rw-r--r--src/bootp.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/bootp.c b/src/bootp.c
index 02ef944..477de3f 100644
--- a/src/bootp.c
+++ b/src/bootp.c
@@ -255,7 +255,7 @@ static void bootp_reply(Slirp *slirp, const struct bootp_t *bp)
}
if (slirp->bootp_filename)
- snprintf((char *)rbp->bp_file, sizeof(rbp->bp_file), "%s",
+ snprintf(rbp->bp_file, sizeof(rbp->bp_file), "%s",
slirp->bootp_filename);
*q++ = RFC2132_SRV_ID;
diff --git a/src/bootp.h b/src/bootp.h
index 03ece9b..a57fa51 100644
--- a/src/bootp.h
+++ b/src/bootp.h
@@ -113,7 +113,7 @@ struct bootp_t {
struct in_addr bp_giaddr;
uint8_t bp_hwaddr[16];
uint8_t bp_sname[64];
- uint8_t bp_file[128];
+ char bp_file[128];
uint8_t bp_vend[DHCP_OPT_LEN];
};