view dropbear_lint.sh @ 1738:4f13df974cf4

Avoid gnu extension conditional operator
author Matt Johnston <matt@ucc.asn.au>
date Thu, 08 Oct 2020 11:00:04 +0800
parents 90fffce0ee99
children
line wrap: on
line source

#!/bin/sh

EXITCODE=0

# #ifdef instead of #if
grep '#ifdef DROPBEAR' -I *.c *.h && EXITCODE=1

exit $EXITCODE