mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-23 17:14:22 +01:00
make: Do not scan contrib for discouraged functions
This commit is contained in:
committed by
Rusty Russell
parent
6c67afeb03
commit
0f2009c7a3
2
Makefile
2
Makefile
@@ -490,7 +490,7 @@ check-tmpctx:
|
|||||||
@if git grep -n 'tal_free[(]tmpctx)' | grep -Ev '^ccan/|/test/|^common/setup.c:|^common/utils.c:'; then echo "Don't free tmpctx!">&2; exit 1; fi
|
@if git grep -n 'tal_free[(]tmpctx)' | grep -Ev '^ccan/|/test/|^common/setup.c:|^common/utils.c:'; then echo "Don't free tmpctx!">&2; exit 1; fi
|
||||||
|
|
||||||
check-discouraged-functions:
|
check-discouraged-functions:
|
||||||
@if git grep -E "[^a-z_/](fgets|fputs|gets|scanf|sprintf)\(" -- "*.c" "*.h" ":(exclude)ccan/"; then exit 1; fi
|
@if git grep -E "[^a-z_/](fgets|fputs|gets|scanf|sprintf)\(" -- "*.c" "*.h" ":(exclude)ccan/" ":(exclude)contrib/"; then exit 1; fi
|
||||||
|
|
||||||
# Don't access amount_msat and amount_sat members directly without a good reason
|
# Don't access amount_msat and amount_sat members directly without a good reason
|
||||||
# since it risks overflow.
|
# since it risks overflow.
|
||||||
|
|||||||
Reference in New Issue
Block a user