Skip to content

Commit f11b09d

Browse files
authored
FreeBSD: minor_t needs to be signed so that -1 is recognized as such
zfsdev_close sets zs_minor to -1 to avoid duplicate calls to destroy. This doesn't mix well with the current u_int used. Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Alexander Motin <[email protected]> Signed-off-by: Matt Macy <[email protected]> Closes #11437
1 parent 06346cc commit f11b09d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/os/freebsd/spl/sys/types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ typedef u_int uint_t;
6464
typedef u_char uchar_t;
6565
typedef u_short ushort_t;
6666
typedef u_long ulong_t;
67-
typedef u_int minor_t;
67+
typedef int minor_t;
6868
/* END CSTYLED */
6969
#ifndef _OFF64_T_DECLARED
7070
#define _OFF64_T_DECLARED

0 commit comments

Comments
 (0)