]> andersk Git - libfaim.git/commitdiff
Fixed the bug in aim_snac.c::aim_remsnac(). It was n's fault. Removed printfs.
authormid <mid>
Mon, 3 Jan 2000 02:02:00 +0000 (02:02 +0000)
committermid <mid>
Mon, 3 Jan 2000 02:02:00 +0000 (02:02 +0000)
aim_info.c
aim_snac.c

index 42b7bdf97e04bac050bc53ec8f37a708921dfb44..384c9ce0b5221f7235ce02d2a5eca140ad64016e 100644 (file)
@@ -43,7 +43,6 @@ u_long aim_getinfo(struct aim_session_t *sess,
     struct aim_snac_t snac;
     
     snac.id = sess->snac_nextid;
-    printf("faim: getuserinfo: caching snac %08lx\n", snac.id);
     snac.family = 0x0002;
     snac.type = 0x0005;
     snac.flags = 0x0000;
index 5c51482e26028a87b83bd39521d25741201b6b72..e3d5970f5aeec492e9ba4df5aa97929ff4954448 100644 (file)
@@ -38,7 +38,7 @@ u_long aim_newsnac(struct aim_session_t *sess,
   while (cur->next != NULL)
     cur = cur->next;
   cur->next = snac;
-  printf("faim: snac: added %08lx\n", snac->id);
+
   return(snac->id);
 }
 
@@ -46,14 +46,12 @@ struct aim_snac_t *aim_remsnac(struct aim_session_t *sess,
                               u_long id) 
 {
   struct aim_snac_t *cur;
-  
+
+  cur = sess->outstanding_snacs;
+
   if (cur == NULL)
     return(NULL);
 
-  printf("faim: snac: searching for %08lx to remove\n", id);
-
-  cur = sess->outstanding_snacs;
-  
   if (cur->id == id) {
     sess->outstanding_snacs = cur->next;
     return(cur);
@@ -94,7 +92,7 @@ int aim_cleansnacs(struct aim_session_t *sess,
     {
       if ( (cur) && (((cur->issuetime) + maxage) < curtime))
        {
-#if 1/* DEBUG > 1*/
+#if DEBUG > 1
          printf("aimsnac: WARNING purged obsolete snac %08lx\n", cur->id);
 #endif
          remed = aim_remsnac(sess, cur->id);
This page took 0.05986 seconds and 5 git commands to generate.