bug-parted
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 06/17] ntfs: remove all-but-probe FS-related code


From: Jim Meyering
Subject: [PATCH 06/17] ntfs: remove all-but-probe FS-related code
Date: Fri, 27 May 2011 17:15:25 +0200

From: Jim Meyering <address@hidden>

---
 libparted/fs/ntfs/Makefile.am |    1 +
 libparted/fs/ntfs/ntfs.c      |   11 -----------
 2 files changed, 1 insertions(+), 11 deletions(-)

diff --git a/libparted/fs/ntfs/Makefile.am b/libparted/fs/ntfs/Makefile.am
index 30fca41..732692a 100644
--- a/libparted/fs/ntfs/Makefile.am
+++ b/libparted/fs/ntfs/Makefile.am
@@ -1,3 +1,4 @@
+AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS)
 partedincludedir       = -I$(top_srcdir)/include

 noinst_LTLIBRARIES     = libntfs.la
diff --git a/libparted/fs/ntfs/ntfs.c b/libparted/fs/ntfs/ntfs.c
index 7cb1db4..da69497 100644
--- a/libparted/fs/ntfs/ntfs.c
+++ b/libparted/fs/ntfs/ntfs.c
@@ -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,
 };
-- 
1.7.5.2.660.g9f46c




reply via email to

[Prev in Thread] Current Thread [Next in Thread]