From fb6fd355f19270e615c178612f640536a1d2345c Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Sun, 2 Jan 2011 22:06:59 +0200 Subject: Lots more doc updates. --- extension/filefuncs.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'extension/filefuncs.c') diff --git a/extension/filefuncs.c b/extension/filefuncs.c index c1268508..46873f1f 100644 --- a/extension/filefuncs.c +++ b/extension/filefuncs.c @@ -7,7 +7,7 @@ */ /* - * Copyright (C) 2001, 2004, 2005 the Free Software Foundation, Inc. + * Copyright (C) 2001, 2004, 2005, 2010, 2011 the Free Software Foundation, Inc. * * This file is part of GAWK, the GNU implementation of the * AWK Programming Language. @@ -56,8 +56,7 @@ do_chdir(int nargs) /* format_mode --- turn a stat mode field into something readable */ static char * -format_mode(fmode) -unsigned long fmode; +format_mode(unsigned long fmode) { static char outbuf[12]; int i; @@ -185,7 +184,7 @@ do_stat(int nargs) ret = lstat(file->stptr, & sbuf); if (ret < 0) { update_ERRNO(); - return make_number((AWKNUM) 0); + return make_number((AWKNUM) ret); } /* fill in the array */ @@ -327,9 +326,7 @@ do_stat(int nargs) /* dlload --- load new builtins in this library */ NODE * -dlload(tree, dl) -NODE *tree; -void *dl; +dlload(NODE *tree, void *dl) { make_builtin("chdir", do_chdir, 1); make_builtin("stat", do_stat, 2); -- cgit v1.2.3