diff options
author | Alex Colomar <alx.manpages@gmail.com> | 2022-09-16 00:09:59 +0200 |
---|---|---|
committer | Alex Colomar <alx.manpages@gmail.com> | 2022-09-17 13:44:18 +0200 |
commit | c396c898cbfe51ccfb486d48a8abd2fc5c43ebb7 (patch) | |
tree | 4b3c7563aba37dd70b1a68d18a68963f8f9437f8 | |
parent | 0b94bd78e52e26a5bc26d1ba2384fc875e08ccd8 (diff) |
kcmp.2: EXAMPLES: Make constant string be 'static const'
Signed-off-by: Alex Colomar <alx.manpages@gmail.com>
-rw-r--r-- | man2/kcmp.2 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/man2/kcmp.2 b/man2/kcmp.2 index d6bfb0908..30e37febc 100644 --- a/man2/kcmp.2 +++ b/man2/kcmp.2 @@ -369,8 +369,8 @@ test_kcmp(char *msg, pid_t pid1, pid_t pid2, int fd_a, int fd_b) int main(void) { - int fd1, fd2, fd3; - char pathname[] = "/tmp/kcmp.test"; + int fd1, fd2, fd3; + static const char pathname[] = "/tmp/kcmp.test"; fd1 = open(pathname, O_CREAT | O_RDWR, 0600); if (fd1 == \-1) |