mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 09:58:07 +02:00
device: fix order of params in nm_match_spec_device prototype
The following commit:b869d9cc0device: add spec "driver:" to match devices added two parameters ("driver" and "driver_version") to the nm_match_spec_device() function. However, the definition of the function and its declaration are not consistent. The prototype shows: nm_match_spec_device (const GSList *specs, const char *interface_name, const char *driver, const char *driver_version, const char *device_type, But the definition shows: nm_match_spec_device (const GSList *specs, const char *interface_name, const char *device_type, const char *driver, const char *driver_version, Since all parameters are pointers to const char, the type checking succeeds at compile time. All currently existing invocations of the function are correct and pass the arguments in the order described in the definition/implementation. This patch only changes the prototype so that potential future invocations don't end up buggy. Fixes:b869d9cc0d
This commit is contained in:
parent
7ab7dc9487
commit
d1a98d6892
1 changed files with 1 additions and 1 deletions
|
|
@ -204,9 +204,9 @@ typedef enum {
|
|||
|
||||
NMMatchSpecMatchType nm_match_spec_device (const GSList *specs,
|
||||
const char *interface_name,
|
||||
const char *device_type,
|
||||
const char *driver,
|
||||
const char *driver_version,
|
||||
const char *device_type,
|
||||
const char *hwaddr,
|
||||
const char *s390_subchannels);
|
||||
NMMatchSpecMatchType nm_match_spec_config (const GSList *specs,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue