aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorNRK <nrk@disroot.org>2022-08-16 10:53:05 +0200
committerNRK <nrk@disroot.org>2022-08-16 10:53:05 +0200
commit6578e6eb6533a6651bd88ecae7720aced88c8c2f (patch)
tree4aed4b6f10e012527c3aaf484826dba9a81b39a5 /README.md
parent216f312578be5c959527c03ccc70d27eebcc76aa (diff)
downloadnsxiv-6578e6eb6533a6651bd88ecae7720aced88c8c2f.tar.zst
code-style: various cleanups (#356)
* run_key_handler: make the logic easier to follow * remove timeout_t the typedef is not needed. inline the declaration similar to the other static structs. * simplify estrdup reuse emalloc, instead of calling malloc and null-checking. * win_clear: initialize `e` right away * process_bindings: explicitly check against NULL most pointer checks in the codebase do explicit check. * use a named constant instead of magic number also changes the padding from 3 to 4 bytes according to [0]. but i couldn't find any situtation where this mattered, so perhaps the current padding is enough. but doesn't hurt adding one more byte. [0]: https://nullprogram.com/blog/2017/10/06/ Reviewed-on: https://codeberg.org/nsxiv/nsxiv/pulls/356 Reviewed-by: explosion-mental <explosion-mental@noreply.codeberg.org>
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions