aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <colomar.6.4.3@gmail.com>2020-09-03 21:58:14 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2020-09-05 14:49:42 +0200
commit0ff1c5e28a8c6376a63990c60f03b3bdd57d5230 (patch)
tree7260889350873085cad30597056dcd10a6d187eb
parent06c4d5d588be1641167084155bc818023c962c09 (diff)
downloadman-pages-0ff1c5e28a8c6376a63990c60f03b3bdd57d5230.tar.gz
fanotify.7: Use sizeof consistently
Use ``sizeof`` consistently through all the examples in the following way: - Use the name of the variable instead of its type as argument for ``sizeof``. Rationale: https://www.kernel.org/doc/html/v5.8/process/coding-style.html#allocating-memory Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man7/fanotify.73
1 files changed, 1 insertions, 2 deletions
diff --git a/man7/fanotify.7 b/man7/fanotify.7
index da925e5a46..c18ab68ed5 100644
--- a/man7/fanotify.7
+++ b/man7/fanotify.7
@@ -860,8 +860,7 @@ handle_events(int fd)
response.fd = metadata\->fd;
response.response = FAN_ALLOW;
- write(fd, &response,
- sizeof(struct fanotify_response));
+ write(fd, &response, sizeof(response));
}
/* Handle closing of writable file event */