Ethereal-cvs: [Ethereal-cvs] rev 12918: /trunk/gtk/: ui_util.c

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

Date: Sat, 01 Jan 2005 23:26:00 -0000
User: guy
Date: 2005/01/01 05:25 PM

Log:
 Cast away the constness of the geom_name argument to
 "window_new_with_geom()" - there's no way to tell the compiler that
 we're not going to be modifying it, but we aren't.
 
 The right way to check whether a pointer is null and get a Boolean is to
 test it against null, not to cast it to a Boolean type - as Boolean
 types in C89/C90, at least, are just integral types, that cast might
 just throw away the upper 32 bits; that probably yields the results you
 want, but the compiler might well justifiably warn about that on an LP64
 platform.

Directory: /trunk/gtk/
  Changes    Path          Action
  +2 -2      ui_util.c     Modified



http://anonsvn.ethereal.com/viewcvs/viewcvs.py?rev=12918&view=rev