summaryrefslogtreecommitdiffabout
authorMichael Krelin <hacker@klever.net>2008-02-11 21:17:44 (UTC)
committer Michael Krelin <hacker@klever.net>2008-02-11 21:17:44 (UTC)
commita3eba4c33fee80fcf152dcbd198586e12b687e54 (patch) (unidiff)
tree1059019be6d1b83f3336872d7fe054e5faa48d20
parent947098ee2ab09c340e6822f2bfce7570388c86b4 (diff)
downloadlibopkele-a3eba4c33fee80fcf152dcbd198586e12b687e54.zip
libopkele-a3eba4c33fee80fcf152dcbd198586e12b687e54.tar.gz
libopkele-a3eba4c33fee80fcf152dcbd198586e12b687e54.tar.bz2
more cleanup
Signed-off-by: Michael Krelin <hacker@klever.net>
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--test/RP.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/test/RP.cc b/test/RP.cc
index 813b9b7..35ee71d 100644
--- a/test/RP.cc
+++ b/test/RP.cc
@@ -235,33 +235,32 @@ class example_rp_t : public opkele::prequeue_RP {
235 } 235 }
236 return eqtop; 236 return eqtop;
237 } 237 }
238 238
239 void next_endpoint() { 239 void next_endpoint() {
240 assert(as_id>=0); 240 assert(as_id>=0);
241 get_endpoint(); 241 get_endpoint();
242 have_eqtop = false; 242 have_eqtop = false;
243 sqlite3_mem_t<char*> S = sqlite3_mprintf( 243 sqlite3_mem_t<char*> S = sqlite3_mprintf(
244 "DELETE FROM endpoints_queue" 244 "DELETE FROM endpoints_queue"
245 " WHERE as_id=%ld AND eq_uri=%Q AND eq_local_id=%Q", 245 " WHERE as_id=%ld AND eq_uri=%Q AND eq_local_id=%Q",
246 htc.get_value().c_str(),as_id, 246 htc.get_value().c_str(),as_id,
247 eqtop.uri.c_str()); 247 eqtop.uri.c_str());
248 db.exec(S); 248 db.exec(S);
249 } 249 }
250 250
251 mutable string _cid;
252 mutable string _nid; 251 mutable string _nid;
253 252
254 void set_normalized_id(const string& nid) { 253 void set_normalized_id(const string& nid) {
255 assert(as_id>=0); 254 assert(as_id>=0);
256 sqlite3_mem_t<char*> S = sqlite3_mprintf( 255 sqlite3_mem_t<char*> S = sqlite3_mprintf(
257 "UPDATE auth_sessions" 256 "UPDATE auth_sessions"
258 " SET as_normalized_id=%Q" 257 " SET as_normalized_id=%Q"
259 " WHERE hts_id=%Q and as_id=%ld", 258 " WHERE hts_id=%Q and as_id=%ld",
260 nid.c_str(), 259 nid.c_str(),
261 htc.get_value().c_str(),as_id); 260 htc.get_value().c_str(),as_id);
262 db.exec(S); 261 db.exec(S);
263 _nid = nid; 262 _nid = nid;
264 } 263 }
265 const string get_normalized_id() const { 264 const string get_normalized_id() const {
266 assert(as_id>=0); 265 assert(as_id>=0);
267 if(_nid.empty()) { 266 if(_nid.empty()) {