summary refs log tree commit diff
path: root/src/libstddjb/fd_move2.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-02-21 12:05:07 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-02-21 12:05:07 +0000
commit49d8fa1058aaf23c29e074b2314492ae40d2f557 (patch)
tree393f884d5a99f984e992a0f35f1b02ac43536217 /src/libstddjb/fd_move2.c
parentfdffefb8032922ce7ffe4c00816072a8ff2148fc (diff)
downloadskalibs-49d8fa1058aaf23c29e074b2314492ae40d2f557.tar.gz
skalibs-49d8fa1058aaf23c29e074b2314492ae40d2f557.tar.xz
skalibs-49d8fa1058aaf23c29e074b2314492ae40d2f557.zip
Types change: big pass on libstddjb and libunixonacid
 libdatastruct still missing, library still not functional
Diffstat (limited to 'src/libstddjb/fd_move2.c')
-rw-r--r--src/libstddjb/fd_move2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstddjb/fd_move2.c b/src/libstddjb/fd_move2.c
index 7894e2f..e28c2cc 100644
--- a/src/libstddjb/fd_move2.c
+++ b/src/libstddjb/fd_move2.c
@@ -6,7 +6,7 @@
 
 int fd_move2 (int to1, int from1, int to2, int from2)
 {
-  register int tmp = from2 ;
+  int tmp = from2 ;
   if (to1 == from1) return fd_move(to2, from2) ;
   if (to2 == from2) return fd_move(to1, from1) ;
   if (from1 == from2) return (to1 == to2) ? fd_move(to1, from1) : (errno = EINVAL, -1) ;
@@ -18,14 +18,14 @@ int fd_move2 (int to1, int from1, int to2, int from2)
   }
   if (fd_copy(to1, from1) == -1)
   {
-    register int e = errno ;
+    int e = errno ;
     if (from2 != tmp) fd_close(tmp) ;
     errno = e ;
     return -1 ;
   }
   if (fd_copy(to2, tmp) == -1)
   {
-    register int e = errno ;
+    int e = errno ;
     fd_close(to1) ;
     if (from2 != tmp) fd_move(from2, tmp) ;
     errno = e ;