mirror of
https://github.com/systemd/systemd.git
synced 2025-02-02 13:47:27 +03:00
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:
parent
4f65fbe990
commit
6d3c20e1ff
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user