aboutsummaryrefslogtreecommitdiff
path: root/hashtab.c
diff options
context:
space:
mode:
authorThomas Schmucker <ts@its1.de>2020-09-03 09:43:35 +0200
committerThomas Schmucker <ts@its1.de>2020-09-03 09:43:35 +0200
commitdaabff089602e406efe29eaa8a639fca2a717b97 (patch)
tree60afa35940bb137305309b9c1b07be7223a5dd30 /hashtab.c
parent6a45dc4a35b2025d6bbebf0ae2b19b94387882f6 (diff)
downloaddata-structures-daabff089602e406efe29eaa8a639fca2a717b97.tar.gz
data-structures-daabff089602e406efe29eaa8a639fca2a717b97.tar.bz2
data-structures-daabff089602e406efe29eaa8a639fca2a717b97.zip
fix: Typen in Hash-Tabelle
Diffstat (limited to 'hashtab.c')
-rw-r--r--hashtab.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/hashtab.c b/hashtab.c
index be5e3d3..8a49baf 100644
--- a/hashtab.c
+++ b/hashtab.c
@@ -135,9 +135,10 @@ hash_free(struct hash_tab *ht)
135} 135}
136 136
137static int 137static int
138getword(FILE *fp, char *buf, int size, int first(int), int rest(int)) 138getword(FILE *fp, char *buf, size_t size, int first(int), int rest(int))
139{ 139{
140 int i = 0, c; 140 size_t i = 0;
141 int c;
141 142
142 c = getc(fp); 143 c = getc(fp);
143 for ( ; c != EOF; c = getc(fp) ) 144 for ( ; c != EOF; c = getc(fp) )