]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
keyctl.2: Declare auth_key
authorOleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Fri, 12 Jun 2020 15:35:33 +0000 (17:35 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Fri, 19 Jun 2020 12:58:54 +0000 (14:58 +0200)
The variable is used in the code example, but not declared,
leading to a compilation error.

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man2/keyctl.2

index 93e03071f65472e0c89f6f086abb3e47aed9a487..6d0386c0e08fe6a5d72a8843a1aa0e83eb9479f8 100644 (file)
@@ -2103,6 +2103,7 @@ main(int argc, char *argv[])
     char dbuf[256];
     char auth_key_payload[256];
     int akp_size;       /* Size of auth_key_payload */
+    int auth_key;
 
     fp = fopen("/tmp/key_instantiate.log", "w");
     if (fp == NULL)