summaryrefslogtreecommitdiffstats
path: root/fdisk/fdisksgilabel.h
diff options
context:
space:
mode:
authorMike Frysinger2007-07-14 19:32:37 +0200
committerKarel Zak2007-07-16 23:03:45 +0200
commitcc2ce9454a150fc21fa2e73723b13f7dc287325a (patch)
tree0ca7b24d1261c151ced4e7c1d47a0bb7cc5b3147 /fdisk/fdisksgilabel.h
parentschedutils: fix chrt docs and pid=0 usage (diff)
downloadkernel-qcow2-util-linux-cc2ce9454a150fc21fa2e73723b13f7dc287325a.tar.gz
kernel-qcow2-util-linux-cc2ce9454a150fc21fa2e73723b13f7dc287325a.tar.xz
kernel-qcow2-util-linux-cc2ce9454a150fc21fa2e73723b13f7dc287325a.zip
fdisk: check returns in fdisk from partition changes
currently the code in fdisk which changes partition types is a bit fragile ... it assumes the partition type succeeded instead of checking the user input or for errors. ive tweaked the sub functions to return a value indicative of the functions' success and fdisk now checks/reports based on that. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'fdisk/fdisksgilabel.h')
-rw-r--r--fdisk/fdisksgilabel.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fdisk/fdisksgilabel.h b/fdisk/fdisksgilabel.h
index fe757bf1c..02b3e9d55 100644
--- a/fdisk/fdisksgilabel.h
+++ b/fdisk/fdisksgilabel.h
@@ -112,7 +112,7 @@ extern struct systypes sgi_sys_types[];
extern void sgi_nolabel( void );
extern int check_sgi_label( void );
extern void sgi_list_table( int xtra );
-extern void sgi_change_sysid( int i, int sys );
+extern int sgi_change_sysid( int i, int sys );
extern unsigned int sgi_get_start_sector( int i );
extern unsigned int sgi_get_num_sectors( int i );
extern int sgi_get_sysid( int i );