#endif
#include <sys/types.h>
-#ifdef HAVE_UNISTD_H
#include <unistd.h>
-#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/* ----------------- */
static int ipc_get_session(struct ipc_header *ipc, server_child *children)
{
- u_int32_t boottime;
- u_int32_t idlen;
+ uint32_t boottime;
+ uint32_t idlen;
char *clientid, *p;
obj->ipc_fd = -1;
srandom(getpid());
- sleep((random() % 10) + 5); /* give it enough time to start */
+ sleep((random() % 5) + 5); /* give it enough time to start */
while (retrycount++ < 10) {
if ((obj->ipc_fd = ipc_client_uds(_PATH_AFP_IPC)) == -1) {
return 0;
}
-