]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
qrcode-util: drop 'sym_' prefix from cleanup function
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 25 Oct 2025 02:45:20 +0000 (11:45 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 25 Oct 2025 02:45:20 +0000 (11:45 +0900)
src/shared/qrcode-util.c

index 43ef871e74c026ba2e55106ef8f1e744ff80c244..320b2353ff92fa0f0bbf99fa5fed5f70300a546c 100644 (file)
@@ -183,7 +183,7 @@ static void write_qrcode(FILE *output, QRcode *qr, unsigned row, unsigned column
         fflush(output);
 }
 
-DEFINE_TRIVIAL_CLEANUP_FUNC_FULL(QRcode*, sym_QRcode_free, NULL);
+DEFINE_TRIVIAL_CLEANUP_FUNC_FULL_RENAME(QRcode*, sym_QRcode_free, QRcode_freep, NULL);
 
 #endif
 
@@ -211,8 +211,7 @@ int print_qrcode_full(
         if (r < 0)
                 return r;
 
-        _cleanup_(sym_QRcode_freep) QRcode *qr =
-                sym_QRcode_encodeString(string, 0, QR_ECLEVEL_L, QR_MODE_8, 1);
+        _cleanup_(QRcode_freep) QRcode *qr = sym_QRcode_encodeString(string, 0, QR_ECLEVEL_L, QR_MODE_8, 1);
         if (!qr)
                 return log_oom_debug();