/* See LICENSE file for copyright and license details. */
#include <dirent.h>
-#include <errno.h>
#include <stdio.h>
#include <string.h>
int num;
if (!(fd = opendir(dir))) {
- fprintf(stderr, "opendir '%s': %s\n", dir, strerror(errno));
+ warn("opendir '%s':", dir);
return NULL;
}