Change a few types to fix warnings, from Thomas Klausner.

This commit is contained in:
nicm
2023-06-30 21:55:08 +00:00
parent 4e57894e85
commit a2a02fd7d7
5 changed files with 8 additions and 7 deletions

View File

@ -24,7 +24,7 @@
#include "tmux.h"
static void
regsub_copy(char **buf, size_t *len, const char *text, size_t start, size_t end)
regsub_copy(char **buf, ssize_t *len, const char *text, size_t start, size_t end)
{
size_t add = end - start;
@ -34,7 +34,7 @@ regsub_copy(char **buf, size_t *len, const char *text, size_t start, size_t end)
}
static void
regsub_expand(char **buf, size_t *len, const char *with, const char *text,
regsub_expand(char **buf, ssize_t *len, const char *with, const char *text,
regmatch_t *m, u_int n)
{
const char *cp;