[parted-devel] omitted from previous patch: add "const" in disk.h too

Jim Meyering jim at meyering.net
Mon Mar 5 14:49:41 CET 2007


<blush>
Next time I will "make distcheck" in the right directory.
This patch is a required part of the previous one.

	* include/parted/disk.h (struct _PedDiskOps) [write]: Change
	parameter type to be "const".

diff --git a/include/parted/disk.h b/include/parted/disk.h
index 5a0081d..06ecfbb 100644
--- a/include/parted/disk.h
+++ b/include/parted/disk.h
@@ -1,6 +1,6 @@
 /*
     libparted - a library for manipulating disk partitions
-    Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+    Copyright (C) 1999, 2000, 2001, 2002, 2007 Free Software Foundation, Inc.
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -171,7 +171,7 @@ struct _PedDiskOps {
         PedDisk* (*duplicate) (const PedDisk* disk);
         void (*free) (PedDisk* disk);
         int (*read) (PedDisk* disk);
-        int (*write) (PedDisk* disk);
+        int (*write) (const PedDisk* disk);
         /** \todo add label guessing op here */
         
         /* partition operations */



More information about the parted-devel mailing list