platform: change temp variable name in NLA_PUT_TYPE()

__tmp clashes with htole16() on s390x.

Fixes: 4120ad2431

https://github.com/NetworkManager/NetworkManager/pull/151
This commit is contained in:
Beniamino Galvani 2018-06-29 09:52:01 +02:00
parent bf7b941502
commit 4888ee7e83

View file

@ -237,8 +237,8 @@ nla_put_string (struct nl_msg *msg, int attrtype, const char *str)
#define NLA_PUT_TYPE(msg, type, attrtype, value) \
do { \
type __tmp = value; \
NLA_PUT(msg, attrtype, sizeof(type), &__tmp); \
type __nla_tmp = value; \
NLA_PUT(msg, attrtype, sizeof(type), &__nla_tmp); \
} while(0)
#define NLA_PUT_U8(msg, attrtype, value) \