ソースを参照

base: BPending: use uint8_t for booloan variable, not int

ambrop7 14 年 前
コミット
b761764c8c
1 ファイル変更3 行追加1 行削除
  1. 3 1
      base/BPending.h

+ 3 - 1
base/BPending.h

@@ -27,6 +27,8 @@
 #ifndef BADVPN_BPENDING_H
 #define BADVPN_BPENDING_H
 
+#include <stdint.h>
+
 #include <misc/debugcounter.h>
 #include <structure/LinkedList1.h>
 #include <base/DebugObject.h>
@@ -58,7 +60,7 @@ typedef struct {
     BPendingGroup *g;
     BPending_handler handler;
     void *user;
-    int pending;
+    uint8_t pending;
     LinkedList1Node pending_node;
     DebugObject d_obj;
 } BPending;