diff options
author | Martin Kaiser <wireshark@kaiser.cx> | 2016-06-16 10:20:40 -0700 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2016-06-16 19:57:15 +0000 |
commit | c26968434c74e48d0f08d095b6bb0002e833f5c2 (patch) | |
tree | c0b81e997e983c5daad002fb0262aab22724415e /tools/lemon | |
parent | 0600f92841d499e7076ce6c97984f5e2c332c24d (diff) | |
download | wireshark-c26968434c74e48d0f08d095b6bb0002e833f5c2.tar.gz |
lemon: use a define for fseek()'s whence parameter
for people who don't immediately understand what fseek(fp, 0, 2) does
Change-Id: I297ba6fd718ef0f09c4d0b29bf433262c3c38435
Reviewed-on: https://code.wireshark.org/review/15976
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'tools/lemon')
-rw-r--r-- | tools/lemon/lemon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lemon/lemon.c b/tools/lemon/lemon.c index 295f93cf98..950e017b3a 100644 --- a/tools/lemon/lemon.c +++ b/tools/lemon/lemon.c @@ -2734,7 +2734,7 @@ void Parse(struct lemon *gp) gp->errorcnt++; return; } - fseek(fp,0,2); + fseek(fp, 0, SEEK_END); filesize = ftell(fp); rewind(fp); filebuf = (char *)malloc( filesize+1 ); |