Author: jfrederic.clere(a)jboss.com
Date: 2007-10-17 12:27:07 -0400 (Wed, 17 Oct 2007)
New Revision: 1129
Modified:
trunk/sight/native/os/solaris/process.c
Log:
Arrange warning.
Modified: trunk/sight/native/os/solaris/process.c
===================================================================
--- trunk/sight/native/os/solaris/process.c 2007-10-17 16:04:59 UTC (rev 1128)
+++ trunk/sight/native/os/solaris/process.c 2007-10-17 16:27:07 UTC (rev 1129)
@@ -34,6 +34,7 @@
#include "sight_local.h"
#include "sight_types.h"
+#include <unistd.h>
#include <procfs.h>
/*
@@ -251,7 +252,7 @@
UNREFERENCED_O;
- if ((rc = sight_create_pool(&pool, sight_temp_pool)) != APR_SUCCESS) {
+ if ((rc = sight_pool_create(&pool, NULL, sight_temp_pool, 0)) != APR_SUCCESS) {
throwAprMemoryException(_E, THROW_FMARK, rc);
return NULL;
@@ -360,7 +361,7 @@
pname[SIGHT_STYPE_LEN] = '\0';
for (n = 0; n < psinfo.pr_argc; n++) {
jstring s;
- if (lseek(fd, sa[n], SEEK_SET) != -1) {
+ if (lseek(fd, (off_t) sa[n], SEEK_SET) != -1) {
if (read(fd, pname, SIGHT_STYPE_LEN) > 0) {
s = CSTR_TO_JSTRING(pname);
if (s) {
@@ -410,7 +411,7 @@
pname[SIGHT_STYPE_LEN] = '\0';
for (n = 0; n < count-1; n++) {
jstring s;
- if (lseek(fd, sa[n], SEEK_SET) != -1) {
+ if (lseek(fd, (off_t) sa[n], SEEK_SET) != -1) {
if (read(fd, pname, SIGHT_STYPE_LEN) > 0) {
s = CSTR_TO_JSTRING(pname);
if (s) {