Print this page
10133 smatch fixes for usr/src/cmd/fs.d

@@ -35,10 +35,14 @@
  * software developed by the University of California, Berkeley, and its
  * contributors.
  */
 
 /*
+ * Copyright (c) 2018, Joyent, Inc.
+ */
+
+/*
  * The maximum supported file system size (in sectors) is the
  * number of frags that can be represented in an int32_t field
  * (INT_MAX) times the maximum number of sectors per frag.  Since
  * the maximum frag size is MAXBSIZE, the maximum number of sectors
  * per frag is MAXBSIZE/DEV_BSIZE.

@@ -233,10 +237,11 @@
 #include        <sys/filio.h>
 #include        <limits.h>
 #include        <sys/int_const.h>
 #include        <signal.h>
 #include        <sys/efi_partition.h>
+#include        <fslib.h>
 #include        "roll_log.h"
 
 #define bcopy(f, t, n)    (void) memcpy(t, f, n)
 #define bzero(s, n)     (void) memset(s, 0, n)
 #define bcmp(s, d, n)   memcmp(s, d, n)