X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fnetlink-socket.c;h=49a8493eccc54a60c1927f6029108e90f96bad33;hb=c2d967a562aaa57b679c302a5041d5a941154143;hp=3bdbbd73c70775d05b6a38ae50ae30afe50dcd9a;hpb=ff459dd649b17f2a2613799c466e979ddd64cdf0;p=openvswitch diff --git a/lib/netlink-socket.c b/lib/netlink-socket.c index 3bdbbd73..49a8493e 100644 --- a/lib/netlink-socket.c +++ b/lib/netlink-socket.c @@ -683,7 +683,7 @@ nl_sock_transact(struct nl_sock *sock, const struct ofpbuf *request, struct nl_transaction *transactionp; struct nl_transaction transaction; - transaction.request = (struct ofpbuf *) request; + transaction.request = CONST_CAST(struct ofpbuf *, request); transaction.reply = replyp ? ofpbuf_new(1024) : NULL; transactionp = &transaction;