diff plugins/icq/icqevent.c @ 1912:8ed70631ed15

[gaim-migrate @ 1922] new icqlib committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Tue, 29 May 2001 10:32:53 +0000
parents 4c510ca3563f
children 7b3f1eb1ef7d
line wrap: on
line diff
--- a/plugins/icq/icqevent.c	Tue May 29 09:46:05 2001 +0000
+++ b/plugins/icq/icqevent.c	Tue May 29 10:32:53 2001 +0000
@@ -1,29 +1,30 @@
 /* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 
 /*
- * $Id: icqevent.c 1442 2001-01-28 01:52:27Z warmenhoven $
+ * Copyright (C) 1998-2001, Denis V. Dmitrienko <denis@null.net> and
+ *                          Bill Soudan <soudan@kde.org>
  *
- * $Log$
- * Revision 1.2  2001/01/28 01:52:27  warmenhoven
- * icqlib 1.1.5
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
- * Revision 1.2  2000/06/15 18:54:09  bills
- * added time attribute and handleEvent function pointer to icq_Event,
- * renamed icq_ChatEvent to icq_ChatRequestEvent, renamed icq_FileEvent to
- * icq_FileRequestEvent, added icq_URLEvent and related methods
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  *
- * Revision 1.1  2000/06/15 15:27:39  bills
- * committed for safekeeping - this code will soon replace stdpackets.c and
- * greatly simplify tcphandle.c, as well as reducing code duplication in many
- * places.  it provides a much more flexible framework for managing events
- * and parsing and creating packets
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  *
-*/
+ */
 
 #include <stdlib.h>
 
+#include "icqlib.h" /* for icqbyteorder.h ?! */
+#include "icqbyteorder.h"
 #include "icqevent.h"
-#include "icqbyteorder.h"
 
 #ifdef EVENT_DEBUG
 #include <string.h>
@@ -385,12 +386,10 @@
   icq_MessageParsePacket(pbase, p);
 
   /* parse file event data */
-  port=icq_PacketRead32(p);                 /* file listen port, network */
+  pevent->port=ntohl(icq_PacketRead32(p));  /* file listen port, network */
   pevent->filename=icq_PacketReadString(p); /* filename text */
   pevent->filesize=icq_PacketRead32(p);     /* total size */
   (void)icq_PacketRead32(p);                /* file listen port, intel */
-
-  pevent->port=ntohl(port);
 }
 
 #ifdef EVENT_DEBUG