Use a constant definition to say 'No Payload'

This commit is contained in:
david 2013-05-03 17:55:07 +00:00
parent 74de527b75
commit 5f557a3766
2 changed files with 2 additions and 1 deletions

View file

@ -161,7 +161,7 @@ NpingOps::NpingOps() {
isr00t_set=false;
/* Payloads */
payload_type=0;
payload_type=PL_NONE;
payload_type_set=false;
payload_buff=NULL;

View file

@ -104,6 +104,7 @@
#define ROLE_SERVER 0x66
/* Payload types */
#define PL_NONE 0x00
#define PL_HEX 0xAA
#define PL_RAND 0xBB
#define PL_FILE 0xCC