summaryrefslogtreecommitdiffstats
path: root/libblkid/src/read.c
diff options
context:
space:
mode:
authorRuediger Meier2016-10-26 20:44:15 +0200
committerRuediger Meier2016-10-27 11:03:24 +0200
commit332123f2b6892c09635ba00de8bf20901e224dea (patch)
treef7e21985608509041a2131c5eb7b57b76a4bcad9 /libblkid/src/read.c
parentchrt: fix HAVE_SCHED_SETATTR fallback case (diff)
downloadkernel-qcow2-util-linux-332123f2b6892c09635ba00de8bf20901e224dea.tar.gz
kernel-qcow2-util-linux-332123f2b6892c09635ba00de8bf20901e224dea.tar.xz
kernel-qcow2-util-linux-332123f2b6892c09635ba00de8bf20901e224dea.zip
misc: fix some compiler warnings
libsmartcols/samples/fromfile.c:59:2: warning: passing argument 3 of 'string_to_bitmask' from incompatible pointer type text-utils/pg.c:79:0: warning: "TABSIZE" redefined libblkid/src/read.c:455:13: warning: 'debug_dump_dev' defined but not used [-Wunused-function] libblkid/src/probe.c:769:13: warning: unused function 'cdrom_size_correction' [-Wunused-function] /usr/include/sys/termios.h:3:2: warning: "this file includes <sys/termios.h> which is deprecated, use <termios.h> instead" [-W#warnings] Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'libblkid/src/read.c')
-rw-r--r--libblkid/src/read.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/libblkid/src/read.c b/libblkid/src/read.c
index c081baff5..42867735f 100644
--- a/libblkid/src/read.c
+++ b/libblkid/src/read.c
@@ -32,11 +32,6 @@
# include <stdlib.h>
#endif
-#ifdef TEST_PROGRAM
-#define blkid_debug_dump_dev(dev) (debug_dump_dev(dev))
-static void debug_dump_dev(blkid_dev dev);
-#endif
-
/*
* File format:
*
@@ -377,8 +372,6 @@ static int blkid_parse_line(blkid_cache cache, blkid_dev *dev_p, char *cp)
goto done;
}
- /*DBG(READ, blkid_debug_dump_dev(dev));*/
-
done:
return ret;
}
@@ -452,31 +445,6 @@ errout:
}
#ifdef TEST_PROGRAM
-static void debug_dump_dev(blkid_dev dev)
-{
- struct list_head *p;
-
- if (!dev) {
- printf(" dev: NULL\n");
- return;
- }
-
- printf(" dev: name = %s\n", dev->bid_name);
- printf(" dev: DEVNO=\"0x%0llx\"\n", (long long)dev->bid_devno);
- printf(" dev: TIME=\"%ld.%ld\"\n", (long)dev->bid_time, (long)dev->bid_utime);
- printf(" dev: PRI=\"%d\"\n", dev->bid_pri);
- printf(" dev: flags = 0x%08X\n", dev->bid_flags);
-
- list_for_each(p, &dev->bid_tags) {
- blkid_tag tag = list_entry(p, struct blkid_struct_tag, bit_tags);
- if (tag)
- printf(" tag: %s=\"%s\"\n", tag->bit_name,
- tag->bit_val);
- else
- printf(" tag: NULL\n");
- }
- printf("\n");
-}
int main(int argc, char**argv)
{