~ubuntu-branches/debian/experimental/ettercap/experimental

« back to all changes in this revision

Viewing changes to utils/etterfilter/ef_grammar.y

  • Committer: Package Import Robot
  • Author(s): Barak A. Pearlmutter
  • Date: 2013-03-27 11:55:24 UTC
  • mfrom: (25.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20130327115524-ahjhvuh03ejcfuui
Tags: 1:0.7.6-2~exp1
Experimental release with IPv6 support

Show diffs side-by-side

added added

removed removed

Lines of Context:
159
159
            ef_debug(3, "\tassignment string\n"); 
160
160
            memcpy(&$$, &$1, sizeof(struct filter_op));
161
161
            $$.opcode = FOP_ASSIGN;
162
 
            $$.op.assign.string = strdup($3.op.assign.string);
 
162
            $$.op.assign.string = (u_char*)strdup((char*)$3.op.assign.string);
163
163
            $$.op.assign.slen = $3.op.assign.slen;
164
164
            /* this is a string */
165
165
            $$.op.assign.size = 0;
236
236
            memcpy(&$$, &$1, sizeof(struct filter_op));
237
237
            $$.opcode = FOP_TEST;
238
238
            $$.op.test.op = FTEST_EQ;
239
 
            $$.op.test.string = strdup($3.op.test.string);
 
239
            $$.op.test.string = (u_char*)strdup((char*)$3.op.test.string);
240
240
            $$.op.test.slen = $3.op.assign.slen;
241
241
            /* this is a string */
242
242
            $$.op.test.size = 0;
247
247
            memcpy(&$$, &$1, sizeof(struct filter_op));
248
248
            $$.opcode = FOP_TEST;
249
249
            $$.op.test.op = FTEST_NEQ;
250
 
            $$.op.test.string = strdup($3.op.test.string);
 
250
            $$.op.test.string = (u_char*)strdup((char*)$3.op.test.string);
251
251
            $$.op.test.slen = $3.op.assign.slen;
252
252
            /* this is a string */
253
253
            $$.op.test.size = 0;