Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
s/off_t/size_t
Baptiste Daroussin committed 11 years ago
commit 98296f6ce6f2fab44a20bc9aec2d754e60665a08
parent f4819b1
3 files changed +3 -3
modified libpkg/pkg_manifest.c
@@ -739,7 +739,7 @@ pkg_parse_manifest_fileat(int dfd, struct pkg *pkg, const char *file,
	ucl_object_t *obj = NULL;
	int rc;
	char *data;
-
	off_t sz = 0;
+
	size_t sz = 0;

	assert(pkg != NULL);
	assert(file != NULL);
modified libpkg/private/utils.h
@@ -89,7 +89,7 @@ ssize_t sbuf_size(struct sbuf *);

int mkdirs(const char *path);
int file_to_buffer(const char *, char **, off_t *);
-
int file_to_bufferat(int, const char *, char **, off_t *);
+
int file_to_bufferat(int, const char *, char **, size_t *);
int format_exec_cmd(char **, const char *, const char *, const char *, char *,
    int argc, char **argv);
int is_dir(const char *);
modified libpkg/utils.c
@@ -146,7 +146,7 @@ mkdirs(const char *_path)
	return (EPKG_OK);
}
int
-
file_to_bufferat(int dfd, const char *path, char **buffer, off_t *sz)
+
file_to_bufferat(int dfd, const char *path, char **buffer, size_t *sz)
{
	int fd = -1;
	struct stat st;