Changeset 259

Show
Ignore:
Timestamp:
04/05/11 15:59:18 (14 months ago)
Author:
marek
Message:

ap51-flash-ng: fix compile error when compiling with DEBUG enabled

Signed-off-by: Marek Lindner <lindner_marek@…>

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • ap51-flash-ng/router_redboot.c

    r258 r259  
    4242#define REDBOOT_STATE_FINISHED  0x12 
    4343#define REDBOOT_STATE_FIS_INIT  0x50 
    44 #define REDBOOT_STATE_FIS_INITY 0x51 
     44#define REDBOOT_STATE_FIS_INITY 0x51 
    4545#define REDBOOT_STATE_FAILED    0x99 
    46 #include <err.h> 
    4746 
    4847static unsigned int ubnt_ip = 3232235796UL; /* 192.168.1.20 */ 
     
    8685} 
    8786 
     87#if defined(DEBUG) 
    8888static int redboot_4mb_detect(struct node *node) 
     89#else 
     90static int redboot_4mb_detect(struct node (*node)__attribute__((unused))) 
     91#endif 
    8992{ 
    9093        /* default redboot type */