Wireshark

  • Riverbed Technology
  • WinPcap
the world's foremost network protocol analyzer
  • Wireshark
    • About
    • Download
    • Blog
  • Get Help
    • Ask a Question
    • FAQs
    • Documentation
    • Mailing Lists
    • Online Tools
    • Wiki
    • Bug Tracker
  • Develop
    • Get Involved
    • Developer's Guide
    • Browse the Code
    • Latest Builds

Wireshark-dev: Re: [Wireshark-dev] [Wireshark-commits] rev 21637: /trunk/gtk/ /trunk/gtk/: follow_dlg.c

Date Index Thread Index Other Months All Mailing Lists
Date Prev Date Next Thread Prev Thread Next


From: Joerg Mayer <jmayer@xxxxxxxxx>
Date: Wed, 2 May 2007 13:08:27 +0200

On Wed, May 02, 2007 at 08:50:22AM +0000, sahlberg@xxxxxxxxxxxxx wrote:
> http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=21637
> 
> Log:
>  store the result of fread in a variable  to make -Werror happy
> 
> Directory: /trunk/gtk/
>   Changes    Path            Action
>   +2 -1      follow_dlg.c    Modified

That's the type of bugfix that doesn't make much sense. Just a dummy
read to squelch the warning without fixing the reason that the waring
was generated in the first place:
To state this differently: What happens, if the read doesn't return the
necessary amount of data?

 Ciao
    Joerg
-- 
Joerg Mayer                                           <jmayer@xxxxxxxxx>
We are stuck with technology when what we really want is just stuff that
works. Some say that should read Microsoft instead of technology.

  • Follow-Ups:
    • Re: [Wireshark-dev] [Wireshark-commits] rev 21637: /trunk/gtk/ /trunk/gtk/: follow_dlg.c
      • From: Guy Harris
  • Prev by Date: Re: [Wireshark-dev] [Patch] additional lua dissector preference types
  • Next by Date: Re: [Wireshark-dev] [Wireshark-commits] rev 21644: /trunk/epan/dissectors/ /trunk/epan/dissectors/: packet-per.c
  • Previous by thread: Re: [Wireshark-dev] [Patch] additional lua dissector preference types
  • Next by thread: Re: [Wireshark-dev] [Wireshark-commits] rev 21637: /trunk/gtk/ /trunk/gtk/: follow_dlg.c
  • Index(es):
    • Date
    • Thread

Wireshark and the "fin" logo are registered trademarks of the Wireshark Foundation