generate-sym-test: only look in .c and .h files

Otherwise it might find backup files and such, which triggered all kinds
of false positives (at least on my devel machine).
This commit is contained in:
Lennart Poettering 2023-05-02 11:22:22 +02:00
parent 4f65fbe990
commit 6d3c20e1ff

View file

@ -67,6 +67,8 @@ print(''' {}
for dirpath, _, filenames in os.walk(sys.argv[2]):
for filename in filenames:
if not filename.endswith(".c") and not filename.endswith(".h"):
continue
with open(os.path.join(dirpath, filename), "r") as f:
process_source_file(f)