diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-08-08 22:04:07 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-08-08 22:26:18 +0200 |
commit | 7b1fac1e529d6f808f11095b7f7e7631b3c5e4bd (patch) | |
tree | c88ecc5e1ed9704f9ed9117edb2485c07ce9fc9c /src/libsystemd-network/dhcp-option.c | |
parent | po: Translated using Weblate (Finnish) (diff) | |
download | systemd-7b1fac1e529d6f808f11095b7f7e7631b3c5e4bd.tar.xz systemd-7b1fac1e529d6f808f11095b7f7e7631b3c5e4bd.zip |
dhcp: rename function argument
Diffstat (limited to 'src/libsystemd-network/dhcp-option.c')
-rw-r--r-- | src/libsystemd-network/dhcp-option.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsystemd-network/dhcp-option.c b/src/libsystemd-network/dhcp-option.c index 95b88e9840..b60c7b443e 100644 --- a/src/libsystemd-network/dhcp-option.c +++ b/src/libsystemd-network/dhcp-option.c @@ -355,7 +355,7 @@ static int parse_options(const uint8_t options[], size_t buflen, uint8_t *overlo return 0; } -int dhcp_option_parse(DHCPMessage *message, size_t len, dhcp_option_callback_t cb, void *userdata, char **_error_message) { +int dhcp_option_parse(DHCPMessage *message, size_t len, dhcp_option_callback_t cb, void *userdata, char **ret_error_message) { _cleanup_free_ char *error_message = NULL; uint8_t overload = 0; uint8_t message_type = 0; @@ -388,8 +388,8 @@ int dhcp_option_parse(DHCPMessage *message, size_t len, dhcp_option_callback_t c if (message_type == 0) return -ENOMSG; - if (_error_message && IN_SET(message_type, DHCP_NAK, DHCP_DECLINE)) - *_error_message = TAKE_PTR(error_message); + if (ret_error_message && IN_SET(message_type, DHCP_NAK, DHCP_DECLINE)) + *ret_error_message = TAKE_PTR(error_message); return message_type; } |