Fix sharkd compilation on some <glibc-2.16 or <gcc-4.8
authorJakub Zawadzki <darkjames-ws@darkjames.pl>
Wed, 22 Feb 2017 00:12:16 +0000 (01:12 +0100)
committerMichael Mann <mmann78@netscape.net>
Fri, 24 Feb 2017 02:14:44 +0000 (02:14 +0000)
commiteef155561037790e58b9e39cfd9d0cd5b7690349
tree3f906da09a08c8f93a749338f6688ffb1741b435
parent99929f727477cd5ddf74d991fa3fa52cba9c6b7d
Fix sharkd compilation on some <glibc-2.16 or <gcc-4.8

- use printf() instead of fwrite().
- don't shadow stat()

Bug: 13424
Change-Id: Idc8931bcc5b1387f0ce3a3bfa146ffeb5b4edc82
Reviewed-on: https://code.wireshark.org/review/20234
Petri-Dish: Jakub Zawadzki <darkjames-ws@darkjames.pl>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: John Thacker <johnthacker@gmail.com>
Reviewed-by: Michael Mann <mmann78@netscape.net>
sharkd_session.c