[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r16047 - in gnunet: contrib src/datacache
From: |
gnunet |
Subject: |
[GNUnet-SVN] r16047 - in gnunet: contrib src/datacache |
Date: |
Sat, 16 Jul 2011 22:36:50 +0200 |
Author: grothoff
Date: 2011-07-16 22:36:50 +0200 (Sat, 16 Jul 2011)
New Revision: 16047
Modified:
gnunet/contrib/timeout_watchdog.c
gnunet/src/datacache/plugin_datacache_sqlite.c
Log:
checkret
Modified: gnunet/contrib/timeout_watchdog.c
===================================================================
--- gnunet/contrib/timeout_watchdog.c 2011-07-16 20:35:10 UTC (rev 16046)
+++ gnunet/contrib/timeout_watchdog.c 2011-07-16 20:36:50 UTC (rev 16047)
@@ -94,7 +94,7 @@
{
/* int setpgrp(pid_t pid, pid_t pgid); is not working on this machine */
//setpgrp (0, pid_t gpid);
- if (-1 !- gpid)
+ if (-1 != gpid)
setpgid (0, gpid);
execvp (argv[2], &argv[2]);
exit (1);
Modified: gnunet/src/datacache/plugin_datacache_sqlite.c
===================================================================
--- gnunet/src/datacache/plugin_datacache_sqlite.c 2011-07-16 20:35:10 UTC
(rev 16046)
+++ gnunet/src/datacache/plugin_datacache_sqlite.c 2011-07-16 20:36:50 UTC
(rev 16047)
@@ -203,8 +203,16 @@
sqlite3_errmsg (plugin->dbh));
return 0;
}
- sqlite3_bind_blob (stmt, 1, key, sizeof (GNUNET_HashCode),
- SQLITE_TRANSIENT);
+ if (GNUNET_OK !=
+ sqlite3_bind_blob (stmt, 1, key, sizeof (GNUNET_HashCode),
+ SQLITE_TRANSIENT))
+ {
+ LOG_SQLITE (plugin->dbh,
+ GNUNET_ERROR_TYPE_ERROR | GNUNET_ERROR_TYPE_BULK,
+ "sqlite3_bind_xxx");
+ sqlite3_finalize (stmt);
+ return 0;
+ }
sqlite3_bind_int (stmt, 2, type);
ntime = (int64_t) now.abs_value;
GNUNET_assert (ntime >= 0);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r16047 - in gnunet: contrib src/datacache,
gnunet <=