diff options
| author | Michael Kerrisk <mtk.manpages@gmail.com> | 2019-06-08 12:27:01 +0200 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2019-06-08 12:36:46 +0200 |
| commit | 6f10bd3260a54d76cd9aac8ec6ac9921b49e8dd1 (patch) | |
| tree | cb57d4ce73780c4e7969088225fa082421484f45 /man7 | |
| parent | c66240063235af4ea670c8b73ca3ffca6d805290 (diff) | |
| download | man-pages-6f10bd3260a54d76cd9aac8ec6ac9921b49e8dd1.tar.gz | |
fanotify.7: Minor code consistency clean-ups
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man7')
| -rw-r--r-- | man7/fanotify.7 | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/man7/fanotify.7 b/man7/fanotify.7 index dfc2b4c501..5b9d5ff95d 100644 --- a/man7/fanotify.7 +++ b/man7/fanotify.7 @@ -989,14 +989,14 @@ main(int argc, char *argv[]) #define BUF_SIZE 256 -int main(int argc, char **argv) +int +main(int argc, char **argv) { int fd, ret, event_fd; ssize_t len, path_len; char path[PATH_MAX]; char procfd_path[PATH_MAX]; char events_buf[BUF_SIZE]; - struct file_handle *file_handle; struct fanotify_event_metadata *metadata; struct fanotify_event_info_fid *fid; @@ -1066,14 +1066,16 @@ int main(int argc, char **argv) event_fd = open_by_handle_at(AT_FDCWD, file_handle, O_RDONLY); if (ret == \-1 && errno == ESTALE) { - printf("File handle is no longer valid. File has been deleted\e\n"); + printf("File handle is no longer valid. " + "File has been deleted\e\n"); continue; } else if (ret == \-1) { perror("open_by_handle_at"); exit(EXIT_FAILURE); } - snprintf(procfd_path, sizeof(procfd_path), "/proc/self/fd/%d", event_fd); + snprintf(procfd_path, sizeof(procfd_path), "/proc/self/fd/%d", + event_fd); /* Retrieve and print the path of the modified dentry */ |
