somebody forgot to look at format string warnings
authortedu <tedu@openbsd.org>
Sun, 26 Jun 2016 19:53:40 +0000 (19:53 +0000)
committertedu <tedu@openbsd.org>
Sun, 26 Jun 2016 19:53:40 +0000 (19:53 +0000)
sbin/mount/mount.c

index 97e54b5..0cfd0f2 100644 (file)
@@ -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");
 }