tChange size type for strrstr - ve - a minimal text editor (work in progress) | |
git clone git://src.adamsgaard.dk/ve | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 89dd277c2abb179ea7264f20ea4ac93dba134770 | |
parent 4247f1004df471c91886c04a985b3faba9d08501 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Wed, 7 Aug 2019 16:20:33 +0200 | |
Change size type for strrstr | |
Diffstat: | |
M find.c | 2 +- | |
M find.h | 2 +- | |
2 files changed, 2 insertions(+), 2 deletions(-) | |
--- | |
diff --git a/find.c b/find.c | |
t@@ -13,7 +13,7 @@ | |
/* reverse of strstr (3) */ | |
char* | |
strrstr(char *haystack, char *needle, | |
- ssize_t haystack_length, ssize_t needle_length) | |
+ size_t haystack_length, size_t needle_length) | |
{ | |
char *cp; | |
for (cp = haystack + haystack_length - needle_length; | |
diff --git a/find.h b/find.h | |
t@@ -2,7 +2,7 @@ | |
#define FIND_H_ | |
char* strrstr(char *haystack, char *needle, | |
- ssize_t haystack_length, ssize_t needle_length); | |
+ size_t haystack_length, size_t needle_length); | |
void editor_find_next_occurence(int opposite_direction); | |
void editor_find(int direction); | |