svn commit: r764355 - in /webservices/sandesha/trunk/c/src/storage/sqlite: permanent_storage_mgr.c sqlite3.c
[email protected] Mon, 13 Apr 2009 03:45:05 -0000
| Newsgroups | gmane.comp.apache.webservices.fx.devel |
|---|---|
| Message-ID | <[email protected]> |
Author: damitha
Date: Mon Apr 13 03:45:05 2009
New Revision: 764355
URL: http://svn.apache.org/viewvc?rev=764355&view=rev
Log:
Removed newly introduced warnings
Modified:
webservices/sandesha/trunk/c/src/storage/sqlite/permanent_storage_mgr.c
webservices/sandesha/trunk/c/src/storage/sqlite/sqlite3.c
Modified: webservices/sandesha/trunk/c/src/storage/sqlite/permanent_storage_mgr.c
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/src/storage/sqlite/permanent_storage_mgr.c?rev=764355&r1=764354&r2=764355&view=diff
==============================================================================
--- webservices/sandesha/trunk/c/src/storage/sqlite/permanent_storage_mgr.c (original)
+++ webservices/sandesha/trunk/c/src/storage/sqlite/permanent_storage_mgr.c Mon Apr 13 03:45:05 2009
@@ -1041,9 +1041,11 @@
#if !defined(WIN32)
{
+ int ret = -1;
+
axis2_char_t permission_str[256];
sprintf(permission_str, "chmod 777 %s", dbname);
- system(permission_str);
+ ret = system(permission_str);
}
#endif
Modified: webservices/sandesha/trunk/c/src/storage/sqlite/sqlite3.c
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/src/storage/sqlite/sqlite3.c?rev=764355&r1=764354&r2=764355&view=diff
==============================================================================
--- webservices/sandesha/trunk/c/src/storage/sqlite/sqlite3.c (original)
+++ webservices/sandesha/trunk/c/src/storage/sqlite/sqlite3.c Mon Apr 13 03:45:05 2009
@@ -17117,7 +17117,8 @@
pid = getpid();
memcpy(&zBuf[sizeof(t)], &pid, sizeof(pid));
}else{
- read(fd, zBuf, nBuf);
+ int ret = -1;
+ ret = read(fd, zBuf, nBuf);
close(fd);
}
}