aboutsummaryrefslogtreecommitdiffstats
path: root/echld/common.c
AgeCommit message (Collapse)AuthorFilesLines
2015-08-21[echld common] Call to fcntl() missing a test for a return value < 0,Bill Parker1-1/+4
indicating failure. Bug: 11056 Change-Id: I87aef31d874224f38226df1725cc29d13ad16b54 Reviewed-on: https://code.wireshark.org/review/10182 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2015-05-17Fix some files to pass the pre-commit hook script.Joerg Mayer1-38/+38
Change-Id: I105bf4e03fcf95cf7541f6377215809759fd933e Reviewed-on: https://code.wireshark.org/review/8502 Reviewed-by: Jörg Mayer <jmayer@loplof.de>
2015-01-13Consistently use the "g_string_free returns a C string pointer" idiom.Guy Harris1-4/+1
g_string_free(str, FALSE) frees the GString container but not the underlying g_malloc()ed string; instead, it returns a pointer to the g_malloc()ed string. Fix those places that didn't already get the string pointer from g_string_free() to do so rather than manually extracting the string themselves. And fix one place that didn't even need to use a string - it was just scanning a C string without even modifying it. Change-Id: Ibbf4872bf5b9935b9907f539b6edb1013f3053a5 Reviewed-on: https://code.wireshark.org/review/6532 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-03-04Remove all $Id$ from top of fileAlexis La Goutte1-2/+0
(Using sed : sed -i '/^ \* \$Id\$/,+1 d') Fix manually some typo (in export_object_dicom.c and crc16-plain.c) Change-Id: I4c1ae68d1c4afeace8cb195b53c715cf9e1227a8 Reviewed-on: https://code.wireshark.org/review/497 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2013-09-13Fix might be used uninitialized warningJörg Mayer1-1/+1
svn path=/trunk/; revision=52009
2013-09-13Fix warnings shown by gcc-4.8.1Jörg Mayer1-32/+30
/home/jmayer/work/wireshark/svn/trunk/echld/common.c:134:2: error: enum conversion in initialization is invalid in C++ [-Werror=c++-compat] {0,NULL} ^ /home/jmayer/work/wireshark/svn/trunk/echld/common.c:134:2: error: (near initialization for ‘t_map[34].type’) [-Werror=c++-compat] /home/jmayer/work/wireshark/svn/trunk/echld/common.c:269:3: note: expected ‘echld_msg_type_t’ but argument is of type ‘guint32’ /home/jmayer/work/wireshark/svn/trunk/echld/common.c:253:8: error: variable ‘off’ set but not used [-Werror=unused-but-set-variable] long off; ^ cc1: all warnings being treated as errors Still todo: /home/jmayer/work/wireshark/svn/trunk/echld/common.c: In function ‘echld_read_frame’: /home/jmayer/work/wireshark/svn/trunk/echld/common.c:269:3: error: enum conversion when passing argument 4 of ‘cb’ is invalid in C++ [-Werror=c++-compat] cb( &(r->rp[sizeof(hdr_t)]), HDR_LEN(h), h->h.chld_id, HDR_TYPE(h), h->h.reqh_id, cb_data); ^ /home/jmayer/work/wireshark/svn/trunk/echld/common.c:269:3: note: expected ‘echld_msg_type_t’ but argument is of type ‘guint32’ Whitespace fixes svn path=/trunk/; revision=52007
2013-07-23Yet another iteration...Luis Ontanon1-0/+3
svn path=/trunk/; revision=50846
2013-07-05Yet another iteration:Luis Ontanon1-0/+89
- improve the parameter api - Add a parameter set message to the NEW child message to set parameters in bulk in the child - some more harvestig from tshark svn path=/trunk/; revision=50393
2013-07-04some more harvesting from tsharkLuis Ontanon1-3/+0
svn path=/trunk/; revision=50380
2013-07-01ANother iteration,Luis Ontanon1-0/+1
- started harvesting pieces from tshark. - fixed? signal handlers - interactive test program very hard to debug... set follow-on-fork doesn't seem to work on my mac. Need linux I guess... svn path=/trunk/; revision=50273
2013-06-29One further iteration, get things right, put placeholders for things to do.Luis Ontanon1-0/+1
svn path=/trunk/; revision=50227
2013-06-28MS: new childLuis Ontanon1-0/+83
MS: ping child MS: set/get child parameter svn path=/trunk/; revision=50218
2013-06-27MS: list interfaces!Luis Ontanon1-5/+8
svn path=/trunk/; revision=50195
2013-06-27MS: Pong from the dispatcher!Luis Ontanon1-67/+86
svn path=/trunk/; revision=50183
2013-06-25Last changes to autofoo, rename the files as they live now in their own dir...Luis Ontanon1-0/+730
svn path=/trunk/; revision=50152