[mpich-commits] r10621 - mpich2/trunk/src/pmi/simple
gropp at mcs.anl.gov
gropp at mcs.anl.gov
Mon Nov 19 11:54:41 CST 2012
Author: gropp
Date: 2012-11-19 11:54:41 -0600 (Mon, 19 Nov 2012)
New Revision: 10621
Modified:
mpich2/trunk/src/pmi/simple/simple_pmiutil.c
Log:
Use ssize_t
Modified: mpich2/trunk/src/pmi/simple/simple_pmiutil.c
===================================================================
--- mpich2/trunk/src/pmi/simple/simple_pmiutil.c 2012-11-19 16:59:27 UTC (rev 10620)
+++ mpich2/trunk/src/pmi/simple/simple_pmiutil.c 2012-11-19 17:54:41 UTC (rev 10621)
@@ -115,8 +115,9 @@
static char *nextChar = 0, *lastChar = 0; /* lastChar is really one past
last char */
static int lastfd = -1;
- int curlen, n;
- char *p, ch;
+ ssize_t n;
+ int curlen;
+ char *p, ch;
/* Note: On the client side, only one thread at a time should
be calling this, and there should only be a single fd.
@@ -172,7 +173,7 @@
int PMIU_writeline( int fd, char *buf )
{
- int size, n;
+ ssize_t size, n;
size = strlen( buf );
if ( size > PMIU_MAXLINE ) {
@@ -245,7 +246,7 @@
/* store value */
MPIU_Strncpy( PMIU_keyval_tab[PMIU_keyval_tab_idx].value, valstart,
MAXVALLEN );
- offset = p - valstart;
+ offset = (int)(p - valstart);
/* When compiled with -fPIC, the pgcc compiler generates incorrect
code if "p - valstart" is used instead of using the
intermediate offset */
More information about the commits
mailing list