author | Michael Krelin <hacker@klever.net> | 2008-02-11 21:17:44 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2008-02-11 21:17:44 (UTC) |
commit | a3eba4c33fee80fcf152dcbd198586e12b687e54 (patch) (unidiff) | |
tree | 1059019be6d1b83f3336872d7fe054e5faa48d20 /test | |
parent | 947098ee2ab09c340e6822f2bfce7570388c86b4 (diff) | |
download | libopkele-a3eba4c33fee80fcf152dcbd198586e12b687e54.zip libopkele-a3eba4c33fee80fcf152dcbd198586e12b687e54.tar.gz libopkele-a3eba4c33fee80fcf152dcbd198586e12b687e54.tar.bz2 |
more cleanup
Signed-off-by: Michael Krelin <hacker@klever.net>
-rw-r--r-- | test/RP.cc | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -239,25 +239,24 @@ class example_rp_t : public opkele::prequeue_RP { | |||
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; |