From: <ta...@us...> - 2009-10-14 21:33:06
|
Revision: 4266 http://gfarm.svn.sourceforge.net/gfarm/?rev=4266&view=rev Author: tatebe Date: 2009-10-14 21:32:50 +0000 (Wed, 14 Oct 2009) Log Message: ----------- portability fix Modified Paths: -------------- gfarm_v2/trunk/gftool/gfdf/gfdf_simple.c gfarm_v2/trunk/gftool/gffindxmlattr/gffindxmlattr.c gfarm_v2/trunk/gftool/gfrep/gfrep.c gfarm_v2/trunk/gftool/gfstat/gfstat.c gfarm_v2/trunk/gftool/gfxattr/gfxattr.c Modified: gfarm_v2/trunk/gftool/gfdf/gfdf_simple.c =================================================================== --- gfarm_v2/trunk/gftool/gfdf/gfdf_simple.c 2009-10-08 03:19:05 UTC (rev 4265) +++ gfarm_v2/trunk/gftool/gfdf/gfdf_simple.c 2009-10-14 21:32:50 UTC (rev 4266) @@ -104,8 +104,9 @@ main(int argc, char *argv[]) { gfarm_error_t e; - char c, *domain = ""; + char *domain = ""; gfarm_error_t (*statfs)(const char *) = display_statfs_nodes; + int c; if (argc > 0) program_name = basename(argv[0]); Modified: gfarm_v2/trunk/gftool/gffindxmlattr/gffindxmlattr.c =================================================================== --- gfarm_v2/trunk/gftool/gffindxmlattr/gffindxmlattr.c 2009-10-08 03:19:05 UTC (rev 4265) +++ gfarm_v2/trunk/gftool/gffindxmlattr/gffindxmlattr.c 2009-10-14 21:32:50 UTC (rev 4266) @@ -83,8 +83,8 @@ main(int argc, char *argv[]) { char *prog_name = basename(argv[0]); - int depth = INT_MAX; - char c, *filename = NULL, *path = NULL, *expr = NULL, *delim = "\t"; + int c, depth = INT_MAX; + char *filename = NULL, *path = NULL, *expr = NULL, *delim = "\t"; struct gfs_xmlattr_ctx *ctxp = NULL; char *fpath, *attrname; gfarm_error_t e; Modified: gfarm_v2/trunk/gftool/gfrep/gfrep.c =================================================================== --- gfarm_v2/trunk/gftool/gfrep/gfrep.c 2009-10-08 03:19:05 UTC (rev 4265) +++ gfarm_v2/trunk/gftool/gfrep/gfrep.c 2009-10-14 21:32:50 UTC (rev 4266) @@ -600,8 +600,8 @@ gfs_glob_t types; int mode_src_ch = 0, mode_dst_ch = 0, num_replicas = 1, parallel = -1; int noexecute = 0, quiet = 0, verbose = 0; - int i, src_nhosts, dst_nhosts, nfinfo, *dst_ports; - char **src_hosts, **dst_hosts, ch; + int i, ch, src_nhosts, dst_nhosts, nfinfo, *dst_ports; + char **src_hosts, **dst_hosts; gfarm_error_t e; const char *errmsg; struct gfrep_arg gfrep_arg; Modified: gfarm_v2/trunk/gftool/gfstat/gfstat.c =================================================================== --- gfarm_v2/trunk/gftool/gfstat/gfstat.c 2009-10-08 03:19:05 UTC (rev 4265) +++ gfarm_v2/trunk/gftool/gfstat/gfstat.c 2009-10-14 21:32:50 UTC (rev 4266) @@ -62,10 +62,10 @@ int main(int argc, char *argv[]) { - char *prog_name = basename(argv[0]), c; + char *prog_name = basename(argv[0]); gfarm_error_t e; extern int optind; - int r = 0; + int c, r = 0; while ((c = getopt(argc, argv, "h?")) != -1) { switch (c) { Modified: gfarm_v2/trunk/gftool/gfxattr/gfxattr.c =================================================================== --- gfarm_v2/trunk/gftool/gfxattr/gfxattr.c 2009-10-08 03:19:05 UTC (rev 4265) +++ gfarm_v2/trunk/gftool/gfxattr/gfxattr.c 2009-10-14 21:32:50 UTC (rev 4266) @@ -240,9 +240,9 @@ main(int argc, char *argv[]) { char *prog_name = basename(argv[0]); - char c, *filename = NULL, *c_path = NULL, *xattrname = NULL; + char *filename = NULL, *c_path = NULL, *xattrname = NULL; enum { NONE, SET_MODE, GET_MODE, REMOVE_MODE, LIST_MODE } mode = NONE; - int xmlMode = 0, flags = 0; + int c, xmlMode = 0, flags = 0; gfarm_error_t e; const char *opts = "f:ghsrl?" #ifdef ENABLE_XMLATTR This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |