Updating a bunch of stuff.

This commit is contained in:
2020-02-11 22:47:57 -08:00
parent fe3694fe68
commit 688b44914d
12 changed files with 49 additions and 19 deletions

View File

@@ -2,9 +2,9 @@ CFLAGS := -pedantic -Wall -Werror -Wextra -O2 -std=c99 -g
lib_LIBRARIES := libdirutils.a libiniparser.a
nobase_include_HEADERS := kst/dirutils.h \
kst/iniparser.h \
dist_noinst_HEADERS := kst/dirlist.h
bin_PROGRAMS := srm
kst/iniparser.h
dist_noinst_HEADERS = kst/dirlist.h
bin_PROGRAMS = srm
## programs
@@ -13,7 +13,7 @@ srm_SOURCES = srm.c
## libraries
libdirutils_a_SOURCES = dirutils.c dirlist.c dirwalk.c dirlist.h
libiniparser_a_SOURCES = iniparser.c

View File

@@ -147,7 +147,7 @@ _rmdirs(const char *path)
char child[FILENAME_MAX + 1];
struct dirent *dp;
DIR *dirp;
int fail;
int fail = EXIT_FAILURE;
if (NULL == (dirp = opendir(path))) {
return EXIT_FAILURE;

View File

@@ -21,9 +21,9 @@
#define __DIRUTILS_DIRLIST_H
#include <sys/queue.h>
#include <stdio.h>
#include <dirent.h>
#include "queue.h"
struct dirlst {