Added prototype for p_rem_proto_data()
Fixed bug in said function which prevented it from actually working. svn path=/trunk/; revision=7982
This commit is contained in:
parent
05330d4ac9
commit
db76d47952
|
@ -1,7 +1,7 @@
|
|||
/* frame_data.c
|
||||
* Routines for packet disassembly
|
||||
*
|
||||
* $Id: frame_data.c,v 1.4 2002/11/27 22:44:41 guy Exp $
|
||||
* $Id: frame_data.c,v 1.5 2003/07/08 05:29:42 tpot Exp $
|
||||
*
|
||||
* Ethereal - Network traffic analyzer
|
||||
* By Gerald Combs <gerald@zing.org>
|
||||
|
@ -142,12 +142,6 @@ p_rem_proto_data(frame_data *fd, int proto)
|
|||
item = g_slist_find_custom(fd->pfd, (gpointer *)&temp, p_compare);
|
||||
|
||||
if (item) {
|
||||
|
||||
fd->pfd = g_slist_remove(fd->pfd, item);
|
||||
|
||||
fd->pfd = g_slist_remove(fd->pfd, item->data);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* frame_data.h
|
||||
* Definitions for frame_data structures and routines
|
||||
*
|
||||
* $Id: frame_data.h,v 1.7 2002/08/28 20:40:44 jmayer Exp $
|
||||
* $Id: frame_data.h,v 1.8 2003/07/08 05:29:42 tpot Exp $
|
||||
*
|
||||
* Ethereal - Network traffic analyzer
|
||||
* By Gerald Combs <gerald@ethereal.com>
|
||||
|
@ -67,6 +67,7 @@ typedef struct {
|
|||
|
||||
extern void p_add_proto_data(frame_data *, int, void *);
|
||||
extern void *p_get_proto_data(frame_data *, int);
|
||||
extern void p_rem_proto_data(frame_data *fd, int proto);
|
||||
|
||||
/* An init routine to be called by epan_init */
|
||||
extern void frame_data_init(void);
|
||||
|
|
Loading…
Reference in New Issue