Commit 327c1a11 authored by Pekka Pessi's avatar Pekka Pessi

Using RETSIGTYPE.

darcs-hash:20050908151758-65a35-0ad3b4f97e1946037b65bacf94a3ae8f2066bfd2.gz
parent 9b2afd16
......@@ -62,9 +62,10 @@ dnl checks for header files
dnl -----------------------
dnl XXX
dnl checks for types
dnl ----------------
dnl XXX
### checks for types
### ----------------
AC_TYPE_SIGNAL
dnl checks for structures
dnl ---------------------
......
......@@ -81,7 +81,7 @@ static int request(context_t *context,
http_t const *http,
char const *path);
su_msg_r server_intr_msg = SU_MSG_R_INIT;
static void server_intr_handler(int signum);
static RETSIGTYPE server_intr_handler(int signum);
static void server_break(context_t *c, su_msg_r msg, su_msg_arg_t *arg);
static msg_payload_t *read_payload(su_home_t *home, char const *fname);
......@@ -179,7 +179,7 @@ static void server_break(context_t *c, su_msg_r msg, su_msg_arg_t *arg)
su_root_break(c->c_root);
}
static void server_intr_handler(int signum)
static RETSIGTYPE server_intr_handler(int signum)
{
su_msg_send(server_intr_msg);
}
......
......@@ -374,11 +374,13 @@ int test_deinit(struct context *ctx)
END();
}
void sig_alarm(int s)
#if HAVE_ALARM
static RETSIGTYPE sig_alarm(int s)
{
fprintf(stderr, "%s: FAIL! test timeout!\n", name);
exit(1);
}
#endif
void usage(void)
{
......
......@@ -364,7 +364,7 @@ init_ping(struct pinger *p, su_msg_r msg, su_sockaddr_t *arg)
}
static
void term(int n)
RETSIGTYPE term(int n)
{
exit(1);
}
......
......@@ -94,7 +94,7 @@ print_X(struct tester *x, su_timer_t *t1, struct timing *ti)
su_msg_r intr_msg = SU_MSG_R_INIT;
static void intr_handler(int signum)
static RETSIGTYPE intr_handler(int signum)
{
su_msg_send(intr_msg);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment