patch-2.4.19 linux-2.4.19/fs/partitions/mac.h

Next file: linux-2.4.19/fs/partitions/msdos.c
Previous file: linux-2.4.19/fs/partitions/mac.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.18/fs/partitions/mac.h linux-2.4.19/fs/partitions/mac.h
@@ -29,6 +29,14 @@
 	/* there is more stuff after this that we don't need */
 };
 
+static inline void macpart_fix_string(char *stg, int len)
+{
+	int i;
+
+	for (i = len - 1; i >= 0 && stg[i] == ' '; i--)
+		stg[i] = 0;
+}
+
 #define MAC_STATUS_BOOTABLE	8	/* partition is bootable */
 
 #define MAC_DRIVER_MAGIC	0x4552

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)