Added SILC Thread Queue API
[silc.git] / lib / silcutil / silcasync.c
index d1552cae52d67acda487c199bcec953b85a7d7ef..216e30af0fe57ec8ed91f3d1c93972ed6803902c 100644 (file)
@@ -4,7 +4,7 @@
 
   Author: Pekka Riikonen <priikone@silcnet.org>
 
-  Copyright (C) 2005 Pekka Riikonen
+  Copyright (C) 2005, 2006 Pekka Riikonen
 
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
@@ -17,7 +17,7 @@
 
 */
 
-#include "silcincludes.h"
+#include "silc.h"
 
 /* Halts async operation */
 
@@ -83,11 +83,11 @@ SilcAsyncOperation silc_async_alloc(SilcAsyncOperationAbort abort_cb,
 /* Creates new async operation */
 
 SilcBool silc_async_init(SilcAsyncOperation op,
-                    SilcAsyncOperationAbort abort_cb,
-                    SilcAsyncOperationPause pause_cb,
-                    void *context)
+                        SilcAsyncOperationAbort abort_cb,
+                        SilcAsyncOperationPause pause_cb,
+                        void *context)
 {
-  assert(abort_cb);
+  SILC_ASSERT(abort_cb);
   op->abort_cb = abort_cb;
   op->pause_cb = pause_cb;
   op->context = context;