From bce0d4191a509e41745dd13c33e949e25b60ce19 Mon Sep 17 00:00:00 2001 From: Niels Sascha Reedijk Date: Sat, 20 Dec 2003 13:20:34 +0000 Subject: [PATCH] Fix various warnings (trivial) git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5716 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/bin/driveinfo.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/apps/bin/driveinfo.c b/src/apps/bin/driveinfo.c index e9cc4f0ce4..90263a951e 100644 --- a/src/apps/bin/driveinfo.c +++ b/src/apps/bin/driveinfo.c @@ -1,9 +1,10 @@ #include +#include #include #include #include -void dump_dev_size(int dev) +static void dump_dev_size(int dev) { size_t sz; if (ioctl(dev, B_GET_DEVICE_SIZE, &sz, sizeof(sz)) < 0) { @@ -14,7 +15,7 @@ void dump_dev_size(int dev) puts(""); } -void dump_bios_id(int dev) +static void dump_bios_id(int dev) { uint8 id; if (ioctl(dev, B_GET_BIOS_DRIVE_ID, &id, sizeof(id)) < 0) { @@ -25,7 +26,7 @@ void dump_bios_id(int dev) puts(""); } -void dump_media_status(int dev) +static void dump_media_status(int dev) { uint32 st; if (ioctl(dev, B_GET_MEDIA_STATUS, &st, sizeof(st)) < 0) { @@ -36,7 +37,7 @@ void dump_media_status(int dev) puts(""); } -const char *device_type(uint32 type) +static const char *device_type(uint32 type) { if (type == B_DISK) return "disk"; if (type == B_TAPE) return "tape"; @@ -51,7 +52,7 @@ const char *device_type(uint32 type) return ""; } -void dump_geom(int dev, bool bios) +static void dump_geom(int dev, bool bios) { device_geometry geom;