[ekg2-commit] r4112 - trunk/plugins/feed: trunk/plugins/feed/nntp.c trunk/plugins/feed/rss.c

SVN commit svn w toxygen.net
Wto, 15 Lip 2008, 22:58:28 CEST


Author: darkjames
Date: 2008-07-15 22:58:27 +0200 (Tue, 15 Jul 2008)
New Revision: 4112

Modified:
   trunk/plugins/feed/nntp.c
   trunk/plugins/feed/rss.c
Log:
query_emit_id_ro()


Modified: trunk/plugins/feed/nntp.c
===================================================================
--- trunk/plugins/feed/nntp.c	2008-07-15 20:09:33 UTC (rev 4111)
+++ trunk/plugins/feed/nntp.c	2008-07-15 20:58:27 UTC (rev 4112)
@@ -159,15 +159,7 @@
 	close(j->fd);
 	j->fd = -1;
 
-	{
-		char *__session = xstrdup(session_uid_get(s));
-		char *__reason = xstrdup(reason);
-
-		query_emit_id(NULL, PROTOCOL_DISCONNECTED, &__session, &__reason, &type, NULL);
-
-		xfree(__session);
-		xfree(__reason);
-	}
+	query_emit_id_ro(NULL, PROTOCOL_DISCONNECTED, &s->uid, &reason, &type, NULL);
 }
 
 typedef struct {

Modified: trunk/plugins/feed/rss.c
===================================================================
--- trunk/plugins/feed/rss.c	2008-07-15 20:09:33 UTC (rev 4111)
+++ trunk/plugins/feed/rss.c	2008-07-15 20:58:27 UTC (rev 4112)
@@ -976,7 +976,7 @@
 	}
 
 	session_connected_set(session, 1);
-	query_emit_id(NULL, PROTOCOL_CONNECTED, &session->uid);
+	query_emit_id_ro(NULL, PROTOCOL_CONNECTED, &session->uid);
 	session->status = EKG_STATUS_AVAIL;
 
 	return 0;



Więcej informacji o liście dyskusyjnej ekg2-commit