1
0
Fork 0
mirror of https://github.com/linux-usb-gadgets/libusbgx.git synced 2025-07-20 05:15:05 +03:00

Rename the net class variables to class_

Using C++ keywords like "class" as variable names causes
build failures when libusbgx is used in C++ projects.

Reported-by: Thomas Moeller (@moether)
Reported-in: https://github.com/linux-usb-gadgets/libusbgx/issues/65#issuecomment-1296790932
Fixes: commit 4ca4a7699b
Fixes: commit efdd7a657c
This commit is contained in:
Paul Wise 2022-11-01 10:47:52 +08:00
parent efdd7a657c
commit 36e71e1e1e
No known key found for this signature in database
GPG key ID: 3116BA5E9FFA69A3
3 changed files with 12 additions and 12 deletions

View file

@ -67,7 +67,7 @@ static struct {
[USBG_F_NET_HOST_ADDR] = NET_ETHER_ADDR_ATTR(host_addr),
[USBG_F_NET_IFNAME] = NET_RO_STRING_ATTR(ifname),
[USBG_F_NET_QMULT] = NET_DEC_ATTR(qmult),
[USBG_F_NET_CLASS] = NET_DEC_ATTR(class),
[USBG_F_NET_CLASS] = NET_DEC_ATTR(class_),
[USBG_F_NET_SUBCLASS] = NET_DEC_ATTR(subclass),
[USBG_F_NET_PROTOCOL] = NET_DEC_ATTR(protocol)
};