From: Alejandro Colomar Date: Mon, 2 May 2022 21:58:23 +0000 (+0200) Subject: listxattr.2, msgop.2: EXAMPLES: ffix X-Git-Tag: man-pages-5.19-rc1~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef20b0bf5f2cb3fcab982159ea15e5951ee86315;p=thirdparty%2Fman-pages.git listxattr.2, msgop.2: EXAMPLES: ffix If an else has a brace on one side, it should have it on both. Reported-by: cpplint(1) Signed-off-by: Alejandro Colomar --- diff --git a/man2/listxattr.2 b/man2/listxattr.2 index bfcc493794..34e2312026 100644 --- a/man2/listxattr.2 +++ b/man2/listxattr.2 @@ -279,9 +279,9 @@ main(int argc, char *argv[]) * Copy value to buffer. */ vallen = getxattr(argv[1], key, val, vallen); - if (vallen == \-1) + if (vallen == \-1) { perror("getxattr"); - else { + } else { /* * Output attribute value. */ @@ -290,8 +290,9 @@ main(int argc, char *argv[]) } free(val); - } else if (vallen == 0) + } else if (vallen == 0) { printf(""); + } printf("\en"); diff --git a/man2/msgop.2 b/man2/msgop.2 index 295e09b3a6..ce87db9176 100644 --- a/man2/msgop.2 +++ b/man2/msgop.2 @@ -620,8 +620,9 @@ get_msg(int qid, int msgtype) exit(EXIT_FAILURE); } printf("No message available for msgrcv()\en"); - } else + } else { printf("message received: %s\en", msg.mtext); + } } int