Skip to content

Commit

Permalink
Remove final K&R definitions
Browse files Browse the repository at this point in the history
Clang trunk now warns -Wstrict-prototypes on this, and they're removed
in C2x

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes openzfs#13447
  • Loading branch information
nabijaczleweli authored and andrewc12 committed Sep 23, 2022
1 parent b4f6848 commit 75f1c04
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions cmd/zed/agents/zfs_mod.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -1099,7 +1099,7 @@ zfs_slm_init()
}

void
zfs_slm_fini()
zfs_slm_fini(void)
{
unavailpool_t *pool;
pendingdev_t *device;
Expand Down
8 changes: 4 additions & 4 deletions cmd/zed/zed_disk_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ zed_udev_monitor(void *arg)
}

int
zed_disk_event_init()
zed_disk_event_init(void)
{
int fd, fflags;

Expand Down Expand Up @@ -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);
Expand All @@ -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)
{
}

Expand Down

0 comments on commit 75f1c04

Please sign in to comment.