Home page logo
/

wireshark logo Wireshark mailing list archives

Commit 49949 broke packet_win.c
From: Joerg Mayer <jmayer () loplof de>
Date: Wed, 19 Jun 2013 04:00:51 +0200

for WANT_PACKET_EDITOR:

In file included from /home/jmayer/work/wireshark/svn/trunk/wiretap/wtap.h:32:0,
                 from /home/jmayer/work/wireshark/svn/trunk/epan/nstime.h:30,
                 from /home/jmayer/work/wireshark/svn/trunk/epan/frame_data.h:30,
                 from /home/jmayer/work/wireshark/svn/trunk/epan/epan.h:32,
                 from /home/jmayer/work/wireshark/svn/trunk/ui/gtk/packet_win.c:44:
/home/jmayer/work/wireshark/svn/trunk/ui/gtk/packet_win.c: In function ‘finfo_window_refresh’:
/home/jmayer/work/wireshark/svn/trunk/ui/gtk/packet_win.c:251:35: error: ‘struct FieldinfoWinData’ has no member named 
‘buf’
   data = buffer_start_ptr(&DataPtr->buf) + DataPtr->start_offset + old_finfo->start;
                                   ^
/home/jmayer/work/wireshark/svn/trunk/wiretap/buffer.h:58:37: note: in definition of macro ‘buffer_start_ptr’
 # define buffer_start_ptr(buffer) ((buffer)->data + (buffer)->start)
                                     ^
/home/jmayer/work/wireshark/svn/trunk/ui/gtk/packet_win.c:251:35: error: ‘struct FieldinfoWinData’ has no member named 
‘buf’
   data = buffer_start_ptr(&DataPtr->buf) + DataPtr->start_offset + old_finfo->start;
                                   ^
/home/jmayer/work/wireshark/svn/trunk/wiretap/buffer.h:58:54: note: in definition of macro ‘buffer_start_ptr’
 # define buffer_start_ptr(buffer) ((buffer)->data + (buffer)->start)
                                                      ^
/home/jmayer/work/wireshark/svn/trunk/ui/gtk/packet_win.c:261:35: error: ‘struct FieldinfoWinData’ has no member named 
‘buf’
   data = buffer_start_ptr(&DataPtr->buf) + DataPtr->start_offset + old_finfo->appendix_start;
                                   ^
/home/jmayer/work/wireshark/svn/trunk/wiretap/buffer.h:58:37: note: in definition of macro ‘buffer_start_ptr’
 # define buffer_start_ptr(buffer) ((buffer)->data + (buffer)->start)
                                     ^
/home/jmayer/work/wireshark/svn/trunk/ui/gtk/packet_win.c:261:35: error: ‘struct FieldinfoWinData’ has no member named 
‘buf’
   data = buffer_start_ptr(&DataPtr->buf) + DataPtr->start_offset + old_finfo->appendix_start;
                                   ^
/home/jmayer/work/wireshark/svn/trunk/wiretap/buffer.h:58:54: note: in definition of macro ‘buffer_start_ptr’
 # define buffer_start_ptr(buffer) ((buffer)->data + (buffer)->start)
                                                      ^
/home/jmayer/work/wireshark/svn/trunk/ui/gtk/packet_win.c:271:66: error: ‘struct FieldinfoWinData’ has no member named 
‘buf’
  epan_dissect_run(&edt, &DataPtr->phdr, buffer_start_ptr(&DataPtr->buf), DataPtr->frame, NULL);
                                                                  ^
/home/jmayer/work/wireshark/svn/trunk/wiretap/buffer.h:58:37: note: in definition of macro ‘buffer_start_ptr’
 # define buffer_start_ptr(buffer) ((buffer)->data + (buffer)->start)
                                     ^
/home/jmayer/work/wireshark/svn/trunk/ui/gtk/packet_win.c:271:66: error: ‘struct FieldinfoWinData’ has no member named 
‘buf’
  epan_dissect_run(&edt, &DataPtr->phdr, buffer_start_ptr(&DataPtr->buf), DataPtr->frame, NULL);
                                                                  ^
/home/jmayer/work/wireshark/svn/trunk/wiretap/buffer.h:58:54: note: in definition of macro ‘buffer_start_ptr’
 # define buffer_start_ptr(buffer) ((buffer)->data + (buffer)->start)
                                                      ^
/home/jmayer/work/wireshark/svn/trunk/ui/gtk/packet_win.c: In function ‘finfo_integer_common’:
/home/jmayer/work/wireshark/svn/trunk/ui/gtk/packet_win.c:298:40: error: ‘struct FieldinfoWinData’ has no member named 
‘buf’
  guint8 *pd = buffer_start_ptr(&DataPtr->buf);
                                        ^
/home/jmayer/work/wireshark/svn/trunk/wiretap/buffer.h:58:37: note: in definition of macro ‘buffer_start_ptr’
 # define buffer_start_ptr(buffer) ((buffer)->data + (buffer)->start)
                                     ^
/home/jmayer/work/wireshark/svn/trunk/ui/gtk/packet_win.c:298:40: error: ‘struct FieldinfoWinData’ has no member named 
‘buf’
  guint8 *pd = buffer_start_ptr(&DataPtr->buf);
                                        ^
/home/jmayer/work/wireshark/svn/trunk/wiretap/buffer.h:58:54: note: in definition of macro ‘buffer_start_ptr’
 # define buffer_start_ptr(buffer) ((buffer)->data + (buffer)->start)
                                                      ^
/home/jmayer/work/wireshark/svn/trunk/ui/gtk/packet_win.c: In function ‘finfo_string_changed’:
/home/jmayer/work/wireshark/svn/trunk/ui/gtk/packet_win.c:342:40: error: ‘struct FieldinfoWinData’ has no member named 
‘buf’
  guint8 *pd = buffer_start_ptr(&DataPtr->buf);
                                        ^
/home/jmayer/work/wireshark/svn/trunk/wiretap/buffer.h:58:37: note: in definition of macro ‘buffer_start_ptr’
 # define buffer_start_ptr(buffer) ((buffer)->data + (buffer)->start)
                                     ^
/home/jmayer/work/wireshark/svn/trunk/ui/gtk/packet_win.c:342:40: error: ‘struct FieldinfoWinData’ has no member named 
‘buf’
  guint8 *pd = buffer_start_ptr(&DataPtr->buf);
                                        ^
/home/jmayer/work/wireshark/svn/trunk/wiretap/buffer.h:58:54: note: in definition of macro ‘buffer_start_ptr’
 # define buffer_start_ptr(buffer) ((buffer)->data + (buffer)->start)
                                                      ^
/home/jmayer/work/wireshark/svn/trunk/ui/gtk/packet_win.c: In function ‘finfo_bv_key_pressed_cb’:
/home/jmayer/work/wireshark/svn/trunk/ui/gtk/packet_win.c:433:37: error: ‘struct FieldinfoWinData’ has no member named 
‘buf’
  data.pd = buffer_start_ptr(&DataPtr->buf);
                                     ^
/home/jmayer/work/wireshark/svn/trunk/wiretap/buffer.h:58:37: note: in definition of macro ‘buffer_start_ptr’
 # define buffer_start_ptr(buffer) ((buffer)->data + (buffer)->start)
                                     ^
/home/jmayer/work/wireshark/svn/trunk/ui/gtk/packet_win.c:433:37: error: ‘struct FieldinfoWinData’ has no member named 
‘buf’
  data.pd = buffer_start_ptr(&DataPtr->buf);
                                     ^
/home/jmayer/work/wireshark/svn/trunk/wiretap/buffer.h:58:54: note: in definition of macro ‘buffer_start_ptr’
 # define buffer_start_ptr(buffer) ((buffer)->data + (buffer)->start)
                                                      ^
/home/jmayer/work/wireshark/svn/trunk/ui/gtk/packet_win.c: In function ‘edit_pkt_common_key_pressed_cb’:
/home/jmayer/work/wireshark/svn/trunk/ui/gtk/packet_win.c:771:72: error: invalid operands to binary & (have ‘Buffer’ 
and ‘int’)
     DataPtr->pd[DataPtr->pd_offset] = (DataPtr->pd[DataPtr->pd_offset] & 0x0f) | (val << 4);
                                                                        ^
/home/jmayer/work/wireshark/svn/trunk/ui/gtk/packet_win.c:774:72: error: invalid operands to binary & (have ‘Buffer’ 
and ‘int’)
     DataPtr->pd[DataPtr->pd_offset] = (DataPtr->pd[DataPtr->pd_offset] & 0xf0) | val;
                                                                        ^
/home/jmayer/work/wireshark/svn/trunk/ui/gtk/packet_win.c:793:37: error: invalid operands to binary | (have ‘Buffer’ 
and ‘int’)
     DataPtr->pd[DataPtr->pd_offset] |= (1 << (7-DataPtr->pd_bitoffset));
                                     ^
/home/jmayer/work/wireshark/svn/trunk/ui/gtk/packet_win.c:795:37: error: invalid operands to binary & (have ‘Buffer’ 
and ‘int’)
     DataPtr->pd[DataPtr->pd_offset] &= ~(1 << (7-DataPtr->pd_bitoffset));
                                     ^
/home/jmayer/work/wireshark/svn/trunk/ui/gtk/packet_win.c: In function ‘edit_pkt_win_key_pressed_cb’:
/home/jmayer/work/wireshark/svn/trunk/ui/gtk/packet_win.c:829:10: error: assignment from incompatible pointer type 
[-Werror]
  data.pd = buffer_start_ptr(&DataPtr->buf);
          ^
cc1: all warnings being treated as errors
make[2]: *** [ui/gtk/CMakeFiles/gtkui.dir/packet_win.c.o] Error 1

-- 
Joerg Mayer                                           <jmayer () loplof de>
We are stuck with technology when what we really want is just stuff that
works. Some say that should read Microsoft instead of technology.
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe

  By Date           By Thread  

Current thread:
  • Commit 49949 broke packet_win.c Joerg Mayer (Jun 19)
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]
AlienVault