aboutsummaryrefslogtreecommitdiffstats
path: root/src/routines.c
Commit message (Collapse)AuthorAgeFilesLines
* tree: handle a pointer returned by malloc()Joursoir2022-08-311-1/+15
| | | | | | | | It is wrong to assume that malloc() always returns allocated memory. Unfortunately, it can return NULL. The rest of the code that uses malloc() should be refactored. That's the reason why we can't do it right now.
* tree: indent one tab between macro name and valueJoursoir2022-08-311-1/+1
|
* routines: replace errprint_*() with print_error()Joursoir2022-08-261-1/+2
| | | | | | | | This is one of the steps on the way to get rid of errprint_*() macros and handle errors by yourself. For more context see other patches under the same topic specified below. TOPIC=drop_errprint
* routines: replace errprint_*() with print_error()Joursoir2022-08-261-3/+6
| | | | | | | | This is one of the steps on the way to get rid of errprint_*() macros and handle errors by yourself. For more context see other patches under the same topic specified below. TOPIC=drop_errprint
* routines: replace errprint_*() with print_error()Joursoir2022-08-261-5/+10
| | | | | | | | This is one of the steps on the way to get rid of errprint_*() macros and handle errors by yourself. For more context see other patches under the same topic specified below. TOPIC=drop_errprint
* routines: include wayland code only if DISPLAY isn't definedJoursoir2022-08-251-15/+15
| | | | | This code is unreachable if lock-password is compiled with X11 support. Move it to `else` macro-statement.
* routines: make the path validation error message more informativeJoursoir2022-08-251-2/+1
| | | | | The error message matches the comment before the function, so remove the last one.
* tree: move printing error into check_sneaky_paths()Joursoir2022-08-251-1/+4
| | | | Avoid repeating the same error messages.
* routines: null-terminate a generated passwordJoursoir2021-07-041-0/+1
|
* routines: use new allowed chars to generate a passwordJoursoir2021-07-041-2/+9
|
* refactor; set correct headers guardJoursoir2021-03-231-0/+211