[GRASS-SVN] r47973 - grass/branches/develbranch_6/lib/db/dbmi_client
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Aug 30 05:24:10 EDT 2011
Author: mmetz
Date: 2011-08-30 02:24:09 -0700 (Tue, 30 Aug 2011)
New Revision: 47973
Modified:
grass/branches/develbranch_6/lib/db/dbmi_client/shutdown.c
Log:
db_shutdown_driver(): clean up code, update documentation
Modified: grass/branches/develbranch_6/lib/db/dbmi_client/shutdown.c
===================================================================
--- grass/branches/develbranch_6/lib/db/dbmi_client/shutdown.c 2011-08-30 09:22:21 UTC (rev 47972)
+++ grass/branches/develbranch_6/lib/db/dbmi_client/shutdown.c 2011-08-30 09:24:09 UTC (rev 47973)
@@ -14,12 +14,8 @@
#include <stdlib.h>
-#ifdef __MINGW32__
-#include <process.h>
-#else
-#include <sys/wait.h>
-#endif
#include <grass/dbmi.h>
+#include <grass/spawn.h>
#include "macros.h"
/*!
@@ -28,19 +24,17 @@
<b>Note:</b> the management of the memory for the driver structure
probably should be handled differently.
- db_start_driver() could take a pointer to driver structure as
- an argument, instead of returning the pointer to allocated
- then there would be no hidden free required
+ db_start_driver() could take a pointer to driver structure as an
+ argument, instead of returning the pointer to allocated then there
+ would be no hidden free required
- \param driver db driver
+ \param driver pointer to dbDriver to be freed
- \return status (?)
+ \return 0 on sucess
+ \return -1 on error
*/
int db_shutdown_driver(dbDriver * driver)
{
-#ifndef __MINGW32__
- int pid;
-#endif
int status;
#ifdef __MINGW32__
More information about the grass-commit
mailing list