aboutsummaryrefslogtreecommitdiff
path: root/include/relocation.h
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@users.noreply.github.com>2020-04-06 02:01:35 -0400
committerGitHub <noreply@github.com>2020-04-06 02:01:35 -0400
commit06da826131ba1c5e28731fc9bae975fc21b13da1 (patch)
tree751c4875cc9cdfedb5f74555c797b1b8e781dec4 /include/relocation.h
parente5f87affc755245d3984b84547816e3d03b8f30a (diff)
downloadspmc-06da826131ba1c5e28731fc9bae975fc21b13da1.tar.gz
Test replace_text (#13)
* Add test boilerplate * Add replace_text test * Redo replace_text
Diffstat (limited to 'include/relocation.h')
-rw-r--r--include/relocation.h2
1 files changed, 1 insertions, 1 deletions
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);