From 0a154b940dc5657f78e3fe10fc239ed0b46c2eaa Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Thu, 8 Apr 2010 23:43:50 +0200 Subject: s4:registry - "patchfile_preg.c" - assign a better type to the "i" counter variable The "i" variable sums up "size" values which are of type "size_t". Therefore also "i" itself should be from this type. --- source4/lib/registry/patchfile_preg.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source4/lib/registry/patchfile_preg.c') diff --git a/source4/lib/registry/patchfile_preg.c b/source4/lib/registry/patchfile_preg.c index 8854225c76..eb84b56403 100644 --- a/source4/lib/registry/patchfile_preg.c +++ b/source4/lib/registry/patchfile_preg.c @@ -42,8 +42,7 @@ static WERROR preg_read_utf16(int fd, char *c) static WERROR preg_write_utf16(int fd, const char *string) { codepoint_t v; - uint16_t i; - size_t size; + size_t i, size; for (i = 0; i < strlen(string); i+=size) { v = next_codepoint(&string[i], &size); -- cgit