From 3bbeaf7f43c64e28ac4186e0156bf279833f3e64 Mon Sep 17 00:00:00 2001 From: Bill Fumerola Date: Mon, 6 Sep 1999 20:15:56 +0000 Subject: [PATCH] Don't depend on the fact that variables default to int. --- usr.bin/fsplit/fsplit.c | 2 +- usr.bin/indent/indent_globs.h | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/usr.bin/fsplit/fsplit.c b/usr.bin/fsplit/fsplit.c index d80837efb50..7a297bc91bb 100644 --- a/usr.bin/fsplit/fsplit.c +++ b/usr.bin/fsplit/fsplit.c @@ -115,7 +115,7 @@ main(argc, argv) char **argv; { register FILE *ofp; /* output file */ - register rv; /* 1 if got card in output file, 0 otherwise */ + register int rv; /* 1 if got card in output file, 0 otherwise */ register char *ptr; int nflag, /* 1 if got name of subprog., 0 otherwise */ retval, diff --git a/usr.bin/indent/indent_globs.h b/usr.bin/indent/indent_globs.h index 8f911eca031..ec2df34c928 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; \