summaryrefslogtreecommitdiff
path: root/nuttx/net/net_clone.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/net/net_clone.c')
-rw-r--r--nuttx/net/net_clone.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/nuttx/net/net_clone.c b/nuttx/net/net_clone.c
index 542f59050..8100e63d2 100644
--- a/nuttx/net/net_clone.c
+++ b/nuttx/net/net_clone.c
@@ -1,7 +1,7 @@
/****************************************************************************
* net/net_clone.c
*
- * Copyright (C) 2009 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2009, 2011 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* Redistribution and use in source and binary forms, with or without
@@ -62,12 +62,12 @@
int net_clone(FAR struct socket *psock1, FAR struct socket *psock2)
{
- irqstate_t flags;
+ uip_lock_t flags;
int ret = OK;
/* Parts of this operation need to be atomic */
- flags = irqsave();
+ flags = uip_lock();
/* Duplicate the socket state */
@@ -110,7 +110,7 @@ int net_clone(FAR struct socket *psock1, FAR struct socket *psock2)
ret = -EBADF;
}
- irqrestore(flags);
+ uip_unlock(flags);
return ret;
}