aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mate/mate_parser.l
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss@ulticom.com>2007-10-17 21:25:16 +0000
committerJeff Morriss <jeff.morriss@ulticom.com>2007-10-17 21:25:16 +0000
commitc7bed1298fabe93c08b2bf732d817f770cd0a88e (patch)
treed7a54ea7c10c3581fa4ec8914b0cc99cd2fa4be9 /plugins/mate/mate_parser.l
parent7d2c0c1b6146887d9dad888e090f381a4ebcb483 (diff)
s/fopen()/eth_fopen()/ in plugins/ (for bug 1827).
svn path=/trunk/; revision=23221
Diffstat (limited to 'plugins/mate/mate_parser.l')
-rw-r--r--plugins/mate/mate_parser.l6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/mate/mate_parser.l b/plugins/mate/mate_parser.l
index 7d99afcf11..ca3a5ff3a7 100644
--- a/plugins/mate/mate_parser.l
+++ b/plugins/mate/mate_parser.l
@@ -47,6 +47,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+#include <wiretap/file_util.h>
+
#include "mate.h"
#include "mate_grammar.h"
#include "mate_parser_lex.h"
@@ -159,7 +161,7 @@ blk_cmnt_stop "*/"
g_error("dtd_preparse: include files nested to deeply");
include_stack[include_stack_ptr++] = YY_CURRENT_BUFFER;
- yyin = fopen( yytext, "r" );
+ yyin = eth_fopen( yytext, "r" );
if (!yyin) {
yy_delete_buffer( YY_CURRENT_BUFFER );
@@ -275,7 +277,7 @@ extern gboolean mate_load_config(const gchar* filename, mate_config* matecfg) {
volatile gboolean state = TRUE;
mc = matecfg;
- yyin = fopen(filename,"r");
+ yyin = eth_fopen(filename,"r");
if (!yyin) {
g_string_sprintfa(mc->config_error,"Mate parser: Could not open file: '%s', error: %s", filename, strerror(errno) );