At least if they can be assigned directly to a function call.
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
pid=fork();
if (pid==-1) {
- fprintf (shadow_logfd, "Could not fork: %s\n", strerror(errno));
+ fprintf (shadow_logfd, "fork: %s\n", strerror(errno));
return 1;
}
if (pid==0) {
struct stat sb;
if (asprintf(&s, "%s/%s", directory, namelist[n]->d_name) == -1) {
- fprintf (shadow_logfd, "could not allocate memory\n");
+ fprintf (shadow_logfd, "asprintf: %s\n", strerror(errno));
for (; n<scanlist; n++) {
free(namelist[n]);
}