Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
split_chr is not used anymore, remove it
Baptiste Daroussin committed 13 years ago
commit a911fd8c2ef4161773f2cfbe590f49183503dff8
parent 2532017
2 files changed +0 -18
modified libpkg/private/utils.h
@@ -66,7 +66,6 @@ void sbuf_free(struct sbuf *);
int mkdirs(const char *path);
int file_to_buffer(const char *, char **, off_t *);
int format_exec_cmd(char **, const char *, const char *, const char *, char *);
-
int split_chr(char *, char);
int file_fetch(const char *, const char *);
int is_dir(const char *);
int is_conf_file(const char *path, char *newpath, size_t len);
modified libpkg/utils.c
@@ -270,23 +270,6 @@ format_exec_cmd(char **dest, const char *in, const char *prefix,
}

int
-
split_chr(char *str, char sep)
-
{
-
	char *next;
-
	char *buf = str;
-
	int nbel = 0;
-

-
	while ((next = strchr(buf, sep)) != NULL) {
-
		nbel++;
-
		buf = next;
-
		buf[0] = '\0';
-
		buf++;
-
	}
-

-
	return nbel;
-
}
-

-
int
is_dir(const char *path)
{
	struct stat st;