Skip to content

Commit

Permalink
Merge pull request collectd#2357 from rpv-tomsk/issue-2305
Browse files Browse the repository at this point in the history
Fixed failed compilation on AIX
  • Loading branch information
rubenk committed Jul 12, 2017
2 parents eeb5444 + 336c5c5 commit e3c7262
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ipc.c
Expand Up @@ -255,14 +255,14 @@ static int ipc_read_shm(void) /* {{{ */
ipcinfo_shm_t *pshm;
unsigned int shm_segments = 0;
size64_t shm_bytes = 0;
int n;
int i, n;

ipcinfo_shm = (ipcinfo_shm_t *)ipc_get_info(
0, GET_IPCINFO_SHM_ALL, IPCINFO_SHM_VERSION, sizeof(ipcinfo_shm_t), &n);
if (ipcinfo_shm == NULL)
return -1;

for (int i = 0, pshm = ipcinfo_shm; i < n; i++, pshm++) {
for (i = 0, pshm = ipcinfo_shm; i < n; i++, pshm++) {
shm_segments++;
shm_bytes += pshm->shm_segsz;
}
Expand Down

0 comments on commit e3c7262

Please sign in to comment.