summaryrefslogtreecommitdiff
path: root/src/libstddjb/open2.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstddjb/open2.c')
-rw-r--r--src/libstddjb/open2.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libstddjb/open2.c b/src/libstddjb/open2.c
index 780f345..1d2682e 100644
--- a/src/libstddjb/open2.c
+++ b/src/libstddjb/open2.c
@@ -7,9 +7,8 @@
int open2 (char const *s, unsigned int flags)
{
- register int r ;
- do
- r = open(s, (int)flags) ;
+ int r ;
+ do r = open(s, flags) ;
while ((r == -1) && (errno == EINTR)) ;
return r ;
}