diff options
author | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2010-04-08 23:43:50 +0200 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2010-04-08 23:57:35 +0200 |
commit | 0a154b940dc5657f78e3fe10fc239ed0b46c2eaa (patch) | |
tree | 6f3f9e97e7cf938830ded31a4cb2934584a3a521 /source4/lib | |
parent | aa9e782a4d27600096230be44e0e18971e503e20 (diff) | |
download | samba-0a154b940dc5657f78e3fe10fc239ed0b46c2eaa.tar.gz samba-0a154b940dc5657f78e3fe10fc239ed0b46c2eaa.tar.bz2 samba-0a154b940dc5657f78e3fe10fc239ed0b46c2eaa.zip |
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.
Diffstat (limited to 'source4/lib')
-rw-r--r-- | source4/lib/registry/patchfile_preg.c | 3 |
1 files changed, 1 insertions, 2 deletions
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); |