From: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
To: iwd@lists.01.org
Subject: [PATCH] network: use L_AUTO_FREE_VAR
Date: Fri, 14 May 2021 18:36:40 +0200 [thread overview]
Message-ID: <20210514163640.305070-1-Marc-Antoine@Perennou.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 791 bytes --]
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
---
src/network.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/network.c b/src/network.c
index 9e858663..0eb3687e 100644
--- a/src/network.c
+++ b/src/network.c
@@ -380,10 +380,10 @@ static int network_load_psk(struct network *network, bool need_passphrase)
size_t psk_len;
uint8_t *psk = l_settings_get_bytes(network->settings, "Security",
"PreSharedKey", &psk_len);
- _auto_(l_free) char *passphrase =
+ L_AUTO_FREE_VAR(char *, passphrase) =
l_settings_get_string(network->settings,
"Security", "Passphrase");
- _auto_(l_free) char *path =
+ L_AUTO_FREE_VAR(char *, path) =
storage_get_network_file_path(security, ssid);
int r;
--
2.30.0
next reply other threads:[~2021-05-14 16:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-14 16:36 Marc-Antoine Perennou [this message]
2021-05-17 15:45 ` [PATCH] network: use L_AUTO_FREE_VAR Denis Kenzior
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210514163640.305070-1-Marc-Antoine@Perennou.com \
--to=marc-antoine@perennou.com \
--cc=iwd@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.