plugins/icq/filesession.c

changeset 1309
dccfec27ffd4
parent 1152
e94e29686ded
child 1432
ab10a52f94a7
--- a/plugins/icq/filesession.c	Tue Dec 19 08:37:12 2000 +0000
+++ b/plugins/icq/filesession.c	Tue Dec 19 10:08:29 2000 +0000
@@ -12,6 +12,7 @@
 #define write _write
 #endif
 
+#include "icqlib.h"
 #include "filesession.h"
 #include "list.h"
 #include "icqpacket.h"
@@ -36,7 +37,7 @@
     p->total_files=0;
     p->total_transferred_bytes=0;
     p->working_dir[0]=0;
-    list_insert(icqlink->icq_FileSessions, 0, p);
+    list_insert(icqlink->d->icq_FileSessions, 0, p);
   }
 	
   return p;
@@ -74,7 +75,7 @@
 icq_FileSession *icq_FindFileSession(ICQLINK *icqlink, DWORD uin,
   unsigned long id)
 {
-  return list_traverse(icqlink->icq_FileSessions, _icq_FindFileSession, 
+  return list_traverse(icqlink->d->icq_FileSessions, _icq_FindFileSession, 
     uin, id);
 }
 
@@ -218,7 +219,7 @@
 
   icq_FileSessionDelete(p);
 
-  list_remove(p->icqlink->icq_FileSessions, p);		
+  list_remove(p->icqlink->d->icq_FileSessions, p);		
 }   
 
 void icq_FileSessionSetWorkingDir(icq_FileSession *p, const char *dir)

mercurial