OSDN Git Service

ntfs: remove all-but-probe FS-related code
authorJim Meyering <meyering@redhat.com>
Mon, 16 May 2011 12:12:07 +0000 (14:12 +0200)
committerJim Meyering <meyering@redhat.com>
Fri, 27 May 2011 15:07:45 +0000 (17:07 +0200)
libparted/fs/ntfs/Makefile.am
libparted/fs/ntfs/ntfs.c

index 30fca41..732692a 100644 (file)
@@ -1,3 +1,4 @@
+AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS)
 partedincludedir       = -I$(top_srcdir)/include
 
 noinst_LTLIBRARIES     = libntfs.la
index 7cb1db4..da69497 100644 (file)
@@ -50,17 +50,6 @@ ntfs_probe (PedGeometry* geom)
                return NULL;
 }
 
-#ifndef DISCOVER_ONLY
-static int
-ntfs_clobber (PedGeometry* geom)
-{
-       char    buf[512];
-
-       memset (buf, 0, 512);
-       return ped_geometry_write (geom, buf, 0, 1);
-}
-#endif /* !DISCOVER_ONLY */
-
 static PedFileSystemOps ntfs_ops = {
        probe:          ntfs_probe,
 };