HomePhabricator

buffer: Fix regression introduced by 6c7eaa and c306a6

Authored by Tilo Eckert <tilo.eckert@flam.de> on Feb 18 2019, 3:53 PM.

Description

buffer: Fix regression introduced by 6c7eaa and c306a6

Buffer (un)packing was broken on compilers that are not
gcc-compatible since the checks for an argument count of
-1 have been removed from ssh_buffer_(un)pack(). This
fix no longer uses GCC extensions for the VA_NARG
macro, but only plain C99.
Note: The macro can no longer count empty argument lists
(results in compile error) which was not needed anyway.

Signed-off-by: Tilo Eckert <tilo.eckert@flam.de>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>

Details

Committed
asnFeb 21 2019, 10:51 AM
Parents
rLIBSSH5a590dfb5f0c: examples: Fix unused parameter warnings in sshd_direct-tcpip
Branches
Unknown
Tags
Unknown

Event Timeline