From: tedu Date: Sun, 26 Jun 2016 19:53:40 +0000 (+0000) Subject: somebody forgot to look at format string warnings X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=3889518196ec6c6273131848dd7231f52f754b51;p=openbsd somebody forgot to look at format string warnings --- diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c index 97e54b5dabd..0cfd0f2fa66 100644 --- a/sbin/mount/mount.c +++ b/sbin/mount/mount.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mount.c,v 1.65 2016/06/20 08:36:36 ajacoutot Exp $ */ +/* $OpenBSD: mount.c,v 1.66 2016/06/26 19:53:40 tedu Exp $ */ /* $NetBSD: mount.c,v 1.24 1995/11/18 03:34:29 cgd Exp $ */ /* @@ -608,10 +608,10 @@ prmount(struct statfs *sf) "mode", tmpfs_args->ta_root_mode & 07777); if (verbose || tmpfs_args->ta_size_max) (void)printf("%s%s=%lu", !f++ ? " (" : ", ", - "size", tmpfs_args->ta_size_max); + "size", (unsigned long)tmpfs_args->ta_size_max); if (verbose || tmpfs_args->ta_nodes_max) (void)printf("%s%s=%lu", !f++ ? " (" : ", ", - "inodes", tmpfs_args->ta_nodes_max); + "inodes", (unsigned long)tmpfs_args->ta_nodes_max); } (void)printf(f ? ")\n" : "\n"); }