diff options
author | наб <[email protected]> | 2022-05-10 23:28:02 +0200 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2022-05-18 12:10:47 -0700 |
commit | 89e81bc6adf58ec442ddaa23e629bf888bc55488 (patch) | |
tree | d3fc483b1e8c5c43efbedb6596c63b169cbc90cc /cmd/zed | |
parent | 6b575417e2bd500906ede0c82c0d29780ee26e9f (diff) |
Remove final K&R definitions
Clang trunk now warns -Wstrict-prototypes on this, and they're removed
in C2x
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Ahelenia Ziemiańska <[email protected]>
Closes #13447
Diffstat (limited to 'cmd/zed')
-rw-r--r-- | cmd/zed/agents/zfs_mod.c | 4 | ||||
-rw-r--r-- | cmd/zed/zed_disk_event.c | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/cmd/zed/agents/zfs_mod.c b/cmd/zed/agents/zfs_mod.c index 59d8182c0..17e47873e 100644 --- a/cmd/zed/agents/zfs_mod.c +++ b/cmd/zed/agents/zfs_mod.c @@ -1073,7 +1073,7 @@ zfs_enum_pools(void *arg) * For now, each agent has its own libzfs instance */ int -zfs_slm_init() +zfs_slm_init(void) { if ((g_zfshdl = libzfs_init()) == NULL) return (-1); @@ -1099,7 +1099,7 @@ zfs_slm_init() } void -zfs_slm_fini() +zfs_slm_fini(void) { unavailpool_t *pool; pendingdev_t *device; diff --git a/cmd/zed/zed_disk_event.c b/cmd/zed/zed_disk_event.c index 52b80d8c4..c4ca54523 100644 --- a/cmd/zed/zed_disk_event.c +++ b/cmd/zed/zed_disk_event.c @@ -362,7 +362,7 @@ zed_udev_monitor(void *arg) } int -zed_disk_event_init() +zed_disk_event_init(void) { int fd, fflags; @@ -398,7 +398,7 @@ zed_disk_event_init() } void -zed_disk_event_fini() +zed_disk_event_fini(void) { /* cancel monitor thread at recvmsg() */ (void) pthread_cancel(g_mon_tid); @@ -416,13 +416,13 @@ zed_disk_event_fini() #include "zed_disk_event.h" int -zed_disk_event_init() +zed_disk_event_init(void) { return (0); } void -zed_disk_event_fini() +zed_disk_event_fini(void) { } |