diff options
author | imp <imp@FreeBSD.org> | 2009-02-10 02:43:07 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2009-02-10 02:43:07 +0000 |
commit | fb9da0fe39318da02647e8a8c6c9aad750d8f099 (patch) | |
tree | 120787b497954c417a69ab66f382bc81585a5ca9 /sys/geom/part/g_part_gpt.c | |
parent | 2cd78ce2efd6564c429bbf577f77fd701567e808 (diff) | |
download | FreeBSD-src-fb9da0fe39318da02647e8a8c6c9aad750d8f099.zip FreeBSD-src-fb9da0fe39318da02647e8a8c6c9aad750d8f099.tar.gz |
Fix g_part_dumpconf and g_part_name prototpyes.
Submitted by: marcel@
Diffstat (limited to 'sys/geom/part/g_part_gpt.c')
-rw-r--r-- | sys/geom/part/g_part_gpt.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/geom/part/g_part_gpt.c b/sys/geom/part/g_part_gpt.c index 13a4561..db6ebdc 100644 --- a/sys/geom/part/g_part_gpt.c +++ b/sys/geom/part/g_part_gpt.c @@ -91,12 +91,12 @@ static int g_part_gpt_add(struct g_part_table *, struct g_part_entry *, static int g_part_gpt_bootcode(struct g_part_table *, struct g_part_parms *); static int g_part_gpt_create(struct g_part_table *, struct g_part_parms *); static int g_part_gpt_destroy(struct g_part_table *, struct g_part_parms *); -static int g_part_gpt_dumpconf(struct g_part_table *, struct g_part_entry *, +static void g_part_gpt_dumpconf(struct g_part_table *, struct g_part_entry *, struct sbuf *, const char *); static int g_part_gpt_dumpto(struct g_part_table *, struct g_part_entry *); static int g_part_gpt_modify(struct g_part_table *, struct g_part_entry *, struct g_part_parms *); -static char *g_part_gpt_name(struct g_part_table *, struct g_part_entry *, +static const char *g_part_gpt_name(struct g_part_table *, struct g_part_entry *, char *, size_t); static int g_part_gpt_probe(struct g_part_table *, struct g_consumer *); static int g_part_gpt_read(struct g_part_table *, struct g_consumer *); @@ -447,7 +447,7 @@ g_part_gpt_destroy(struct g_part_table *basetable, struct g_part_parms *gpp) return (0); } -static int +static void g_part_gpt_dumpconf(struct g_part_table *table, struct g_part_entry *baseentry, struct sbuf *sb, const char *indent) { @@ -470,7 +470,6 @@ g_part_gpt_dumpconf(struct g_part_table *table, struct g_part_entry *baseentry, } else { /* confxml: scheme information */ } - return (0); } static int @@ -502,7 +501,7 @@ g_part_gpt_modify(struct g_part_table *basetable, return (0); } -static char * +static const char * g_part_gpt_name(struct g_part_table *table, struct g_part_entry *baseentry, char *buf, size_t bufsz) { |