| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
| |
From the specification:
> If path does not name a directory, remove(path) shall be equivalent
to unlink(path).
> If path names a directory, remove(path) shall be equivalent to
rmdir(path).
rmdir() will remove a directory only if it is empty, so drop
validation for it.
|
|
|
|
|
| |
Fix the next warning:
> no previous prototype for ‘xstrcat’ [-Wmissing-prototypes]
|
|
|
|
|
| |
Fix the next warning:
> no previous prototype for ‘run_clipboard’ [-Wmissing-prototypes]
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
The angle brackets (<>) indicate that the enclosed parameter is
mandatory. Man syntax uses italic text for this purpose, but our text
is unformatted, so we use characters.
|
| |
|
| |
|
|
|
|
| |
No idea why it's here.
|
|
|
|
| |
There is no need to hide script actions from users.
|
| |
|
| |
|
|
|
|
|
| |
To avoid a memory leakages we must release an allocated data. For
output error messages use new macro.
|
|
|
|
|
|
|
|
| |
This is last patch 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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
This code is unreachable if lock-password is compiled with X11
support. Move it to `else` macro-statement.
|
|
|
|
|
| |
The error message matches the comment before the function, so remove
the last one.
|
|
|
|
| |
Avoid repeating the same error messages.
|
|
|
|
| |
No need to allocate memory.
|
|
|
|
|
|
|
|
|
|
| |
Handle errors using goto instead of "do { ... } while(0)".
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
The standard says: "If ptr is a null pointer, no action occurs".
So, remove conditions.
|
|
|
|
|
|
|
|
|
|
| |
Handle errors using goto instead of "do { ... } while(0)".
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
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
Rename macro based on naming rules.
|
|
|
|
|
|
| |
This patch also does:
- Moves usageprint() from constants.h to output.h
- Returns an error after using useprint() clearly.
|
| |
|
| |
|
|
|
|
|
| |
Let's unite two conditions. So, if mkdir() returns a non-zero value
and errno equals EEXIST, we'll give a change and do chdir() again.
|
|
|
|
|
| |
No need to try to create a directory in other cases, because that
won't help.
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
The file contains only one macro right now. But it's more convenient
if the header with the appropriate name will do output routines.
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
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|