aboutsummaryrefslogtreecommitdiffstats
path: root/epan/value_string.c
AgeCommit message (Collapse)AuthorFilesLines
2005-08-20removal of even more sprintfRonnie Sahlberg1-2/+2
svn path=/trunk/; revision=15457
2005-08-17fix some more silly rotating buffersRonnie Sahlberg1-9/+3
svn path=/trunk/; revision=15385
2005-08-08various code cleanup:Ulf Lamping1-4/+1
-use g_snprintf instead of sprintf and snprintf -use g_strdup_printf where appropriate -remove #include "snprintf.h" (as only g_snprintf should be used) -replace some more alloc/realloc/calloc/free with their glib pendants svn path=/trunk/; revision=15264
2005-06-26Get rid of the private "my_match_strval()" routine in many dissectors;Guy Harris1-12/+20
add a "match_strval_idx()" routine that does the same thing, and have "match_strval()" call it. Make those routines, and "val_to_str()", return a "const" pointer. Update dissectors as necessary to squelch compiler warnings produced by that. Use "val_to_str()" rather than using "match_strval()" and then, if the result is null, substituting a specific string. Clean up some other "match_strval()"/"val_to_str()" usages. Add a null pointer check in the NDPS dissector's "attribute_value()" routine, as it's not clear that "global_attribute_name" won't be null at that point. Make some global variables in the AFS4INT dissector local. Make some routines not used outside the module they're in static. Make some tables "static const". Clean up white space. Fix Gerald's address in some files. svn path=/trunk/; revision=14786
2005-06-26value_string.c(71) : warning C4090: 'return' : different 'const' qualifiersUlf Lamping1-1/+5
svn path=/trunk/; revision=14784
2005-04-18Force the "fmt" argument of val_to_str() to be non-null. Change the 9PGerald Combs1-0/+2
dissector to use a non-null format. Fixes bug 70. Fix the line endings in the 9P dissector, and set its SVN properties. svn path=/trunk/; revision=14127
2004-07-18Set the svn:eol-style property on all text files to "native", so thatGuy Harris1-1/+1
they have LF at the end of the line on UN*X and CR/LF on Windows; hopefully this means that if a CR/LF version is checked in on Windows, the CRs will be stripped so that they show up only when checked out on Windows, not on UN*X. svn path=/trunk/; revision=11400
2003-12-01From Tomas Kukosa: add "decode_enumerated_bitfield_shifted()", which isGuy Harris1-1/+20
like "decode_enumerated_bitfield()" but handles value_string tables containing values as they appear in the bitfield rather than as they appear in the item containing the bitfield. svn path=/trunk/; revision=9134
2002-08-28Removed trailing whitespaces from .h and .c files using theJörg Mayer1-7/+7
winapi_cleanup tool written by Patrik Stridvall for the wine project. svn path=/trunk/; revision=6116
2001-09-14Get rid of no-longer-necessary includes of <sys/time.h>.Guy Harris1-5/+1
svn path=/trunk/; revision=3936
2001-04-02Include <sys/time.h> as well as <time.h> in "column-utils.c" andGuy Harris1-1/+5
"value_string.c", as they include "epan/to_str.h", and that uses "struct timeval" in some function prototypes. In "to_str.c", include <sys/types.h> before including <netinet/in.h>; on at least some platforms, definitions in <netinet/in.h> require types defined in <sys/types.h>. In "to_str.c", include <sys/socket.h>, so that AF_INET6 is defined. svn path=/trunk/; revision=3238
2001-04-01Moved the value_string structures and function from packet.{c,h} intoEd Warnicke1-0/+90
a separate value_string.{c,h}. svn path=/trunk/; revision=3221