From 06da826131ba1c5e28731fc9bae975fc21b13da1 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Mon, 6 Apr 2020 02:01:35 -0400 Subject: Test replace_text (#13) * Add test boilerplate * Add replace_text test * Redo replace_text --- include/relocation.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/relocation.h') diff --git a/include/relocation.h b/include/relocation.h index 23b0dc9..01a7c6d 100644 --- a/include/relocation.h +++ b/include/relocation.h @@ -14,7 +14,7 @@ typedef struct { int relocate(const char *filename, const char *_oldstr, const char *_newstr); void relocate_root(const char *destroot, const char *baseroot); -int replace_text(char *data, const char *_spattern, const char *_sreplacement); +ssize_t replace_text(char *data, const char *_spattern, const char *_sreplacement); int file_replace_text(char *filename, const char *spattern, const char *sreplacement); RelocationEntry **prefixes_read(const char *filename); void prefixes_free(RelocationEntry **entry); -- cgit