aboutsummaryrefslogtreecommitdiff
path: root/tests/zfs-tests/cmd/file/file_trunc.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/zfs-tests/cmd/file/file_trunc.c')
-rw-r--r--tests/zfs-tests/cmd/file/file_trunc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/zfs-tests/cmd/file/file_trunc.c b/tests/zfs-tests/cmd/file/file_trunc.c
index 69096752efa2..9e3bba24afdf 100644
--- a/tests/zfs-tests/cmd/file/file_trunc.c
+++ b/tests/zfs-tests/cmd/file/file_trunc.c
@@ -6,7 +6,7 @@
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
+ * or https://opensource.org/licenses/CDDL-1.0.
* See the License for the specific language governing permissions
* and limitations under the License.
*
@@ -53,7 +53,7 @@ static long fsize = FSIZE;
static size_t bsize = BSIZE;
static int count = 0;
static int rflag = 0;
-static int seed = 0;
+static uint_t seed = 0;
static int vflag = 0;
static int errflag = 0;
static off_t offset = 0;
@@ -105,7 +105,7 @@ parse_options(int argc, char *argv[])
extern int optind, optopt;
count = fsize / bsize;
- seed = time(NULL);
+ seed = (uint_t)time(NULL);
while ((c = getopt(argc, argv, "b:c:f:o:rs:v")) != -1) {
switch (c) {
case 'b':