Author: jfrederic.clere(a)jboss.com
Date: 2007-08-23 11:21:12 -0400 (Thu, 23 Aug 2007)
New Revision: 954
Modified:
trunk/sight/native/os/posix/group.c
trunk/sight/native/os/posix/user.c
Log:
The fields are "J" so use SET_IFIELD_J and cast (jlong).
Modified: trunk/sight/native/os/posix/group.c
===================================================================
--- trunk/sight/native/os/posix/group.c 2007-08-21 09:57:19 UTC (rev 953)
+++ trunk/sight/native/os/posix/group.c 2007-08-23 15:21:12 UTC (rev 954)
@@ -164,7 +164,7 @@
/* 3. GID */
token = sight_strtok_c(NULL, ':', &titer);
ng->gid = sight_strtoi32(token);
- SET_IFIELD_I(0002, u, ng->gid);
+ SET_IFIELD_J(0002, u, (jlong) ng->gid);
SET_IFIELD_Z(0003, u, JNI_TRUE);
/* 4. Users */
token = sight_strtok_c(NULL, ':', &titer);
@@ -222,7 +222,7 @@
}
grp->gid = grpid;
SET_IFIELD_S(0000, thiz, gname);
- SET_IFIELD_I(0002, thiz, grp->gid);
+ SET_IFIELD_J(0002, thiz, (jlong) grp->gid);
SET_IFIELD_Z(0003, thiz, JNI_TRUE);
/* 4. Users */
token = sight_strtok_c(NULL, ':', &titer);
Modified: trunk/sight/native/os/posix/user.c
===================================================================
--- trunk/sight/native/os/posix/user.c 2007-08-21 09:57:19 UTC (rev 953)
+++ trunk/sight/native/os/posix/user.c 2007-08-23 15:21:12 UTC (rev 954)
@@ -164,7 +164,7 @@
/* 3. UID */
token = sight_strtok_c(NULL, ':', &titer);
nu->uid = sight_strtoi32(token);
- SET_IFIELD_I(0003, u, nu->uid);
+ SET_IFIELD_J(0003, u, (jlong) nu->uid);
/* 4. GID */
token = sight_strtok_c(NULL, ':', &titer);
nu->gid = sight_strtoi32(token);
@@ -215,7 +215,7 @@
usr = (posix_user_t *)malloc(sizeof(posix_user_t));
usr->uid = uid;
SET_IFIELD_S(0000, thiz, uname);
- SET_IFIELD_I(0003, thiz, usr->uid);
+ SET_IFIELD_J(0003, thiz, (jlong) usr->uid);
/* 4. GID */
token = sight_strtok_c(NULL, ':', &titer);
usr->gid = sight_strtoi32(token);