convert some variables, from `int' to `size_t'

This commit is contained in:
rlar 2010-11-02 17:20:05 +00:00
parent b4ffca60c4
commit db9125fecc
4 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2010-11-02 Robert Larice
* src/frontend/arg.c ,
* src/misc/misc_time.c ,
* src/spicelib/parser/inpmktmp.c :
convert some variables, from `int' to `size_t'
2010-11-02 Robert Larice 2010-11-02 Robert Larice
* src/frontend/com_history.c , * src/frontend/com_history.c ,
* src/frontend/com_measure2.c , * src/frontend/com_measure2.c ,

View File

@ -25,7 +25,7 @@ char *prompt(FILE *fp)
{ {
char buf[100]; char buf[100];
char *p; char *p;
int n; size_t n;
if (!fgets(buf, sizeof(buf), fp)) if (!fgets(buf, sizeof(buf), fp))
return 0; return 0;

View File

@ -45,7 +45,7 @@ datestring(void)
static char tbuf[45]; static char tbuf[45];
struct tm *tp; struct tm *tp;
char *ap; char *ap;
int i; size_t i;
time_t tloc; time_t tloc;
time(&tloc); time(&tloc);

View File

@ -13,7 +13,7 @@ Author: 1985 Thomas L. Quarles
char *INPmkTemp(char *string) char *INPmkTemp(char *string)
{ {
int len; size_t len;
char *temp; char *temp;
len = strlen(string); len = strlen(string);