keyctl.2: declare auth_key
PATCH 1/1 keyctl.2: declare auth_key
The variable is used in the code example, but not declared, leading to an expected compilation error:
error: ‘auth_key’ undeclared (first use in this function).
Signed-off-by Oleksandr Kravchuk <[email protected]>
--- man2/keyctl.2 | 1 + 1 file changed, 1 insertion(+)
man2/keyctl.2 +1 -0
@@ -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)
Signature · 1 line
2.17.1
Hello Oleksandr
Quoted 6 lines · Oleksandr Kravchuk
The variable is used in the code example, but not declared, leading to an expected compilation error:
error: ‘auth_key’ undeclared (first use in this function).Signed-off-by Oleksandr Kravchuk <[email protected]>
Thanks. Patch applied.
Cheers,
Michael
Quoted 17 lines
--- man2/keyctl.2 | 1 + 1 file changed, 1 insertion(+)man2/keyctl.2 +1
-0@@ -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)
Signature · 3 lines
Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/