|
From: Steve D. <ste...@us...> - 2009-01-16 22:48:10
|
Update of /cvsroot/evms/evms2/engine/plugins/ogfs In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv13436 Modified Files: fs_ogfs.c ondisk.c Log Message: Cleanup compiler warnings. Added bonus: My editor cleans up trailing whitespace. Index: ondisk.c =================================================================== RCS file: /cvsroot/evms/evms2/engine/plugins/ogfs/ondisk.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- ondisk.c 6 Nov 2003 23:38:29 -0000 1.3 +++ ondisk.c 16 Jan 2009 22:48:03 -0000 1.4 @@ -18,8 +18,7 @@ */ #include <stdio.h> #include <string.h> -#define __STDC_FORMAT_MACROS 1 -#include <inttypes.h> +#include <plugin.h> #include "osi_endian.h" #include "ogfs_ondisk.h" @@ -115,7 +114,7 @@ * */ void -ogfs_inum_print(ogfs_inum_t * no, int console) +ogfs_inum_print(ogfs_inum_t * no, int UNUSED(console)) { pv(no, no_formal_ino, "%"PRIu64); pv(no, no_addr, "%"PRIu64); @@ -168,7 +167,7 @@ * */ void -ogfs_meta_header_print(ogfs_meta_header_t * mh, int console) +ogfs_meta_header_print(ogfs_meta_header_t * mh, int UNUSED(console)) { pv(mh, mh_magic, "0x%.8X"); pv(mh, mh_type, "%u"); @@ -977,7 +976,7 @@ * */ void -ogfs_tag_print(ogfs_block_tag_t * tg, int console) +ogfs_tag_print(ogfs_block_tag_t * tg, int UNUSED(console)) { pv(tg, bt_blkno, "%"PRIu64); pv(tg, bt_flags, "%u"); Index: fs_ogfs.c =================================================================== RCS file: /cvsroot/evms/evms2/engine/plugins/ogfs/fs_ogfs.c,v retrieving revision 1.41 retrieving revision 1.42 diff -u -d -r1.41 -r1.42 --- fs_ogfs.c 4 Jan 2008 18:17:47 -0000 1.41 +++ fs_ogfs.c 16 Jan 2009 22:48:03 -0000 1.42 @@ -49,13 +49,13 @@ static ogfs_volume_type_t ogfs_get_volume_type(logical_volume_t *volume) { ogfs_volume_type_t type = OGFS_UNKNOWN_VOL; - + if (volume->private_data != NULL) { uint32 magic = *((uint32 *)volume->private_data); - + if (magic == OGFS_MAGIC) { ogfs_meta_header_t *ogfs_mh; [...1257 lines suppressed...] ogfsutils_support) { struct ogfs_sb *ogfs_sb; - + ogfs_sb = (struct ogfs_sb *)volume->private_data; /* @@ -3098,10 +3103,10 @@ * * Currently OpenGFS does not support shrinking a file system. */ -static int ogfs_can_shrink_by(logical_volume_t *volume, sector_count_t *delta) +static int ogfs_can_shrink_by(logical_volume_t * UNUSED(volume), sector_count_t * UNUSED(delta)) { int rc = ENOSYS; - + LOG_ENTRY(); LOG_EXIT_INT(rc); return rc; |