diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2021-01-08 11:05:32 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2021-01-08 11:05:32 +0200 |
commit | d562eb482f3180dcd59a332edc91027ea3844d90 (patch) | |
tree | d90bb37b1c75a6429d961031b6a3ae08559408c0 /awkgram.c | |
parent | b4dc5fb3dc57f7fc7eaba39c5814b8bae9403b77 (diff) | |
download | egawk-d562eb482f3180dcd59a332edc91027ea3844d90.tar.gz egawk-d562eb482f3180dcd59a332edc91027ea3844d90.tar.bz2 egawk-d562eb482f3180dcd59a332edc91027ea3844d90.zip |
Improve use of types throughout.
Diffstat (limited to 'awkgram.c')
-rw-r--r-- | awkgram.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -5592,7 +5592,7 @@ get_src_buf() * avoids problems with some ancient systems where * the types of arguments to read() aren't up to date. */ - static ssize_t (*readfunc)() = 0; + static ssize_t (*readfunc)(int, void *, size_t) = NULL; if (readfunc == NULL) { char *cp = getenv("AWKREADFUNC"); @@ -5603,7 +5603,7 @@ get_src_buf() * cast is to remove warnings on systems with * different return types for read. */ - readfunc = ( ssize_t(*)() ) read; + readfunc = ( ssize_t(*)(int, void *, size_t) ) read; else readfunc = read_one_line; } @@ -7763,7 +7763,7 @@ variable(int location, char *name, NODETYPE type) /* make_regnode --- make a regular expression node */ NODE * -make_regnode(int type, NODE *exp) +make_regnode(NODETYPE type, NODE *exp) { NODE *n; |