You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
404 B

  1. --- a/pqueue.c
  2. +++ b/pqueue.c
  3. @@ -7,13 +7,11 @@
  4. #include "pqueue.h"
  5. #ifdef DEBUG_PQUEUE
  6. -#define DEBUG_ON 1
  7. +#define DEBUG_CMD(_a) { _a }
  8. #else
  9. -#define DEBUG_ON 0
  10. +#define DEBUG_CMD(_a)
  11. #endif
  12. -#define DEBUG_CMD(_a) if (DEBUG_ON) { _a }
  13. -
  14. #define MIN_CAPACITY 128 /* min allocated buffer for a packet */
  15. static int pqueue_alloc (int seq, unsigned char *packet, int packlen, pqueue_t **new);