Whamcloud - gitweb
b=21670 use int instead of char to hold getopt rc in accordance with its prototype
authorAndrew Perepechko <Andrew.Perepechko@Sun.COM>
Mon, 11 Jan 2010 12:55:42 +0000 (15:55 +0300)
committerRobert Read <rread@sun.com>
Tue, 12 Jan 2010 17:33:48 +0000 (09:33 -0800)
i=Brian Murrell

lustre/tests/mpi/write_disjoint.c

index 9b28d60..2561000 100644 (file)
@@ -77,13 +77,13 @@ void rprintf(int rank, int loop, const char *fmt, ...)
 #define CHUNK_SIZE(n) chunk_size[(n) % 2]
 
 int main (int argc, char *argv[]) {
-        int i, n, fd;
+        int i, n, fd, c;
         unsigned long chunk_size[2];
         int rank, noProcessors, done;
         int error;
         off_t offset;
         char **chunk_buf;
-        char *read_buf, c;
+        char *read_buf;
         struct stat stat_buf;
         ssize_t ret;
         char *filename = "/mnt/lustre/write_disjoint";