aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/zvol_id/zvol_id_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/zvol_id/zvol_id_main.c')
-rw-r--r--cmd/zvol_id/zvol_id_main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/cmd/zvol_id/zvol_id_main.c b/cmd/zvol_id/zvol_id_main.c
index 018bb6672..d9c80b3f9 100644
--- a/cmd/zvol_id/zvol_id_main.c
+++ b/cmd/zvol_id/zvol_id_main.c
@@ -33,7 +33,8 @@
#include <sys/zfs_znode.h>
#include <sys/fs/zfs.h>
-int ioctl_get_msg(char *var, int fd)
+static int
+ioctl_get_msg(char *var, int fd)
{
int error = 0;
char msg[ZFS_MAXNAMELEN];
@@ -47,7 +48,8 @@ int ioctl_get_msg(char *var, int fd)
return (error);
}
-int main(int argc, char **argv)
+int
+main(int argc, char **argv)
{
int fd, error = 0;
char zvol_name[ZFS_MAXNAMELEN], zvol_name_part[ZFS_MAXNAMELEN];