2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 14:07:59 +00:00

include isc/time.h; minor style lint

This commit is contained in:
David Lawrence
2000-04-25 19:34:52 +00:00
parent 0a7bde9fa8
commit b3eeac48ea
3 changed files with 9 additions and 10 deletions

View File

@@ -27,6 +27,7 @@
#include <isc/task.h> #include <isc/task.h>
#include <isc/thread.h> #include <isc/thread.h>
#include <isc/result.h> #include <isc/result.h>
#include <isc/time.h>
#include <isc/timer.h> #include <isc/timer.h>
#include <isc/ratelimiter.h> #include <isc/ratelimiter.h>
#include <isc/util.h> #include <isc/util.h>

View File

@@ -25,15 +25,15 @@
#include <isc/error.h> #include <isc/error.h>
#include <isc/mem.h> #include <isc/mem.h>
#include <isc/task.h> #include <isc/task.h>
#include <isc/time.h>
#include <isc/timer.h>
#include <isc/thread.h> #include <isc/thread.h>
#include <isc/result.h> #include <isc/result.h>
#include <isc/timer.h>
isc_mem_t *mctx = NULL; isc_mem_t *mctx = NULL;
static void static void
my_callback(isc_task_t *task, isc_event_t *event) my_callback(isc_task_t *task, isc_event_t *event) {
{
int i, j; int i, j;
char *name = event->ev_arg; char *name = event->ev_arg;
@@ -53,8 +53,7 @@ my_shutdown(isc_task_t *task, isc_event_t *event) {
} }
static void static void
my_tick(isc_task_t *task, isc_event_t *event) my_tick(isc_task_t *task, isc_event_t *event) {
{
char *name = event->ev_arg; char *name = event->ev_arg;
printf("task %p tick %s\n", task, name); printf("task %p tick %s\n", task, name);

View File

@@ -27,8 +27,9 @@
#include <isc/mem.h> #include <isc/mem.h>
#include <isc/task.h> #include <isc/task.h>
#include <isc/thread.h> #include <isc/thread.h>
#include <isc/result.h> #include <isc/time.h>
#include <isc/timer.h> #include <isc/timer.h>
#include <isc/result.h>
isc_mem_t *mctx1, *mctx2, *mctx3; isc_mem_t *mctx1, *mctx2, *mctx3;
isc_task_t *t1, *t2, *t3; isc_task_t *t1, *t2, *t3;
@@ -44,8 +45,7 @@ shutdown_task(isc_task_t *task, isc_event_t *event) {
} }
static void static void
tick(isc_task_t *task, isc_event_t *event) tick(isc_task_t *task, isc_event_t *event) {
{
char *name = event->ev_arg; char *name = event->ev_arg;
INSIST(event->ev_type == ISC_TIMEREVENT_TICK); INSIST(event->ev_type == ISC_TIMEREVENT_TICK);
@@ -73,8 +73,7 @@ tick(isc_task_t *task, isc_event_t *event)
} }
static void static void
timeout(isc_task_t *task, isc_event_t *event) timeout(isc_task_t *task, isc_event_t *event) {
{
char *name = event->ev_arg; char *name = event->ev_arg;
char *type; char *type;