diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2015-07-10 18:26:06 +0200 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2015-10-02 17:11:41 +0200 |
commit | 97030a86f0137bca52c3cf9b30e5ed3bdf69b2f2 (patch) | |
tree | c1e02e95431039b447bef090cffe65f895e111f6 /src/libsystemd-network/lldp-internal.h | |
parent | 2212d76d08f3bc34c683aed1a6736325b841625c (diff) |
lldp: change order of arguments of lldp_read_*() functions
These functions are going to be exported, swap the 'data' and 'length'
arguments so that their signature is consistent with the rest of the
code.
Diffstat (limited to 'src/libsystemd-network/lldp-internal.h')
-rw-r--r-- | src/libsystemd-network/lldp-internal.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libsystemd-network/lldp-internal.h b/src/libsystemd-network/lldp-internal.h index f4eadbb87e..c61080828b 100644 --- a/src/libsystemd-network/lldp-internal.h +++ b/src/libsystemd-network/lldp-internal.h @@ -86,13 +86,13 @@ int lldp_mib_update_objects(lldp_chassis *c, tlv_packet *tlv); int lldp_mib_add_objects(Prioq *by_expiry, Hashmap *neighbour_mib, tlv_packet *tlv); int lldp_mib_remove_objects(lldp_chassis *c, tlv_packet *tlv); -int lldp_read_chassis_id(tlv_packet *tlv, uint8_t *type, uint16_t *length, uint8_t **data); -int lldp_read_port_id(tlv_packet *tlv, uint8_t *type, uint16_t *length, uint8_t **data); +int lldp_read_chassis_id(tlv_packet *tlv, uint8_t *type, uint8_t **data, uint16_t *length); +int lldp_read_port_id(tlv_packet *tlv, uint8_t *type, uint8_t **data, uint16_t *length); int lldp_read_ttl(tlv_packet *tlv, uint16_t *ttl); -int lldp_read_system_name(tlv_packet *tlv, uint16_t *length, char **data); -int lldp_read_system_description(tlv_packet *tlv, uint16_t *length, char **data); +int lldp_read_system_name(tlv_packet *tlv, char **data, uint16_t *length); +int lldp_read_system_description(tlv_packet *tlv, char **data, uint16_t *length); int lldp_read_system_capability(tlv_packet *tlv, uint16_t *data); -int lldp_read_port_description(tlv_packet *tlv, uint16_t *length, char **data); +int lldp_read_port_description(tlv_packet *tlv, char **data, uint16_t *length); int lldp_handle_packet(tlv_packet *m, uint16_t length); #define log_lldp(fmt, ...) log_internal(LOG_DEBUG, 0, __FILE__, __LINE__, __func__, "LLDP: " fmt, ##__VA_ARGS__) |