Skip to contentSkip to conversation

keyctl.2: declare auth_key

PATCH In review Oleksandr Kravchuk 2 participants 2 messages Jun 12, 2020 – Jun 19, 2020 Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

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).

---
 man2/keyctl.2 | 1 +
 1 file changed, 1 insertion(+)
man2/keyctl.2 +1 -0
index 3dea4266c..08ae92d6d 100644
@@ -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
#1 lore raw

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).

Thanks. Patch applied.

Cheers,

Michael

Quoted 17 lines
---
 man2/keyctl.2 | 1 +
 1 file changed, 1 insertion(+)
man2/keyctl.2 +1 -0
index 3dea4266c..08ae92d6d 100644
@@ -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/