forked from osmocom/wireshark
"dfilter_compile()" doesn't modify the string pointed to by its first
argument; make it a const pointer. svn path=/trunk/; revision=6724
This commit is contained in:
parent
a55fa6743a
commit
cfa04730cf
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* $Id: dfilter.c,v 1.13 2002/10/16 16:32:59 gram Exp $
|
||||
* $Id: dfilter.c,v 1.14 2002/12/02 23:28:16 guy Exp $
|
||||
*
|
||||
* Ethereal - Network traffic analyzer
|
||||
* By Gerald Combs <gerald@ethereal.com>
|
||||
|
@ -188,7 +188,7 @@ dfwork_free(dfwork_t *dfw)
|
|||
|
||||
|
||||
gboolean
|
||||
dfilter_compile(gchar *text, dfilter_t **dfp)
|
||||
dfilter_compile(const gchar *text, dfilter_t **dfp)
|
||||
{
|
||||
int token;
|
||||
dfilter_t *dfilter;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* $Id: dfilter.h,v 1.7 2002/09/09 21:04:15 guy Exp $
|
||||
* $Id: dfilter.h,v 1.8 2002/12/02 23:28:16 guy Exp $
|
||||
*
|
||||
* Ethereal - Network traffic analyzer
|
||||
* By Gerald Combs <gerald@ethereal.com>
|
||||
|
@ -56,7 +56,7 @@ dfilter_cleanup(void);
|
|||
* Returns TRUE on success, FALSE on failure.
|
||||
*/
|
||||
gboolean
|
||||
dfilter_compile(gchar *text, dfilter_t **dfp);
|
||||
dfilter_compile(const gchar *text, dfilter_t **dfp);
|
||||
|
||||
/* Frees all memory used by dfilter, and frees
|
||||
* the dfilter itself. */
|
||||
|
|
Loading…
Reference in New Issue