diff options
author | billf <billf@FreeBSD.org> | 1999-09-06 20:15:56 +0000 |
---|---|---|
committer | billf <billf@FreeBSD.org> | 1999-09-06 20:15:56 +0000 |
commit | 05fb6e762f4cafe2c29220b4351a0899670edb07 (patch) | |
tree | faa62410c3aafa481e9b3f2085a93403ec07e1c2 /usr.bin/indent | |
parent | 744841d62c658afd1348ea83c0163ab66c6b2fbf (diff) | |
download | FreeBSD-src-05fb6e762f4cafe2c29220b4351a0899670edb07.zip FreeBSD-src-05fb6e762f4cafe2c29220b4351a0899670edb07.tar.gz |
Don't depend on the fact that variables default to int.
Diffstat (limited to 'usr.bin/indent')
-rw-r--r-- | usr.bin/indent/indent_globs.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/indent/indent_globs.h b/usr.bin/indent/indent_globs.h index 8f911ec..ec2df34 100644 --- a/usr.bin/indent/indent_globs.h +++ b/usr.bin/indent/indent_globs.h @@ -55,7 +55,7 @@ FILE *output; /* the output file */ #define CHECK_SIZE_CODE \ if (e_code >= l_code) { \ - register nsize = l_code-s_code+400; \ + register int nsize = l_code-s_code+400; \ codebuf = (char *) realloc(codebuf, nsize); \ e_code = codebuf + (e_code-s_code) + 1; \ l_code = codebuf + nsize - 5; \ @@ -63,7 +63,7 @@ FILE *output; /* the output file */ } #define CHECK_SIZE_COM \ if (e_com >= l_com) { \ - register nsize = l_com-s_com+400; \ + register int nsize = l_com-s_com+400; \ combuf = (char *) realloc(combuf, nsize); \ e_com = combuf + (e_com-s_com) + 1; \ l_com = combuf + nsize - 5; \ @@ -71,7 +71,7 @@ FILE *output; /* the output file */ } #define CHECK_SIZE_LAB \ if (e_lab >= l_lab) { \ - register nsize = l_lab-s_lab+400; \ + register int nsize = l_lab-s_lab+400; \ labbuf = (char *) realloc(labbuf, nsize); \ e_lab = labbuf + (e_lab-s_lab) + 1; \ l_lab = labbuf + nsize - 5; \ @@ -79,7 +79,7 @@ FILE *output; /* the output file */ } #define CHECK_SIZE_TOKEN \ if (e_token >= l_token) { \ - register nsize = l_token-s_token+400; \ + register int nsize = l_token-s_token+400; \ tokenbuf = (char *) realloc(tokenbuf, nsize); \ e_token = tokenbuf + (e_token-s_token) + 1; \ l_token = tokenbuf + nsize - 5; \ |