summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-04-25 18:20:14 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-04-25 18:20:14 (EDT)
commit32b7c2ab14c83caa7efb3b0a83cc546213435455 (patch)
tree64805b524ffe28c4f6cd2752d83f416f4a3ec910
parent7309686ac2456331cb0e5c54c1f4ceac996ba549 (diff)
src/fd.sh: Shift func args and update copyright
-rw-r--r--src/fd.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fd.sh b/src/fd.sh
index 345eee6..8bd4584 100644
--- a/src/fd.sh
+++ b/src/fd.sh
@@ -1,6 +1,6 @@
# Functions for opening and closing file descriptors
#
-# Copyright (C) 2013 Patrick "P. J." McDermott
+# Copyright (C) 2013 Patrick McDermott
#
# This file is part of the ProteanOS Development Kit.
#
@@ -42,6 +42,7 @@ fopen()
{
local path="${1}"
local mode="${2}"
+ shift 2
local i=
local fd=
@@ -80,6 +81,7 @@ fopen()
fclose()
{
local fd="${1}"
+ shift 1
# Make sure the file descriptor is open.
if [ "x$(eval echo "\${_fd_${fd}+set}")" != 'xset' ]; then