diff options
Diffstat (limited to 'libc/inet/rpc/create_xid.c')
| -rw-r--r-- | libc/inet/rpc/create_xid.c | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/libc/inet/rpc/create_xid.c b/libc/inet/rpc/create_xid.c index e3ee4799b..61487c6a4 100644 --- a/libc/inet/rpc/create_xid.c +++ b/libc/inet/rpc/create_xid.c @@ -13,35 +13,26 @@ Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, write to the Free - Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA - 02111-1307 USA. */ - -#define __FORCE_GLIBC -#include <features.h> + License along with the GNU C Library; if not, see + <http://www.gnu.org/licenses/>. */ #include <unistd.h> #include <stdlib.h> #include <sys/time.h> -#include <rpc/rpc.h> +#include "rpc_private.h" -libc_hidden_proto(lrand48_r) -libc_hidden_proto(srand48_r) -libc_hidden_proto(gettimeofday) /* The RPC code is not threadsafe, but new code should be threadsafe. */ #include <bits/uClibc_mutex.h> __UCLIBC_MUTEX_STATIC(mylock, PTHREAD_MUTEX_INITIALIZER); - static smallint is_initialized; static struct drand48_data __rpc_lrand48_data; -u_long _create_xid (void) attribute_hidden; u_long _create_xid (void) { - unsigned long res; + long res; __UCLIBC_MUTEX_LOCK(mylock); |
