diff options
author | Joseph Hunkeler <jhunkeler@users.noreply.github.com> | 2020-04-06 02:01:35 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-06 02:01:35 -0400 |
commit | 06da826131ba1c5e28731fc9bae975fc21b13da1 (patch) | |
tree | 751c4875cc9cdfedb5f74555c797b1b8e781dec4 /include/relocation.h | |
parent | e5f87affc755245d3984b84547816e3d03b8f30a (diff) | |
download | spmc-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.h | 2 |
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); |