OSDN Git Service

[GCC4] fix build error in include/net/irda/irlan_event.h
authorWilly Tarreau <w@1wt.eu>
Sun, 13 Aug 2006 14:14:50 +0000 (16:14 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 13 Aug 2006 15:19:16 +0000 (17:19 +0200)
This patch fixes this error with gcc 4 :

irlan_common.c:74: error: static declaration of 'irlan_state' follows non-static declaration
/usr/src/git/linux-2.4/include/net/irda/irlan_event.h:70: error: previous declaration of 'irlan_state' was here

include/net/irda/irlan_event.h

index b9baac9..0765649 100644 (file)
@@ -67,8 +67,6 @@ typedef enum {
        IRLAN_WATCHDOG_TIMEOUT,
 } IRLAN_EVENT;
 
-extern char *irlan_state[];
-
 void irlan_do_client_event(struct irlan_cb *self, IRLAN_EVENT event, 
                           struct sk_buff *skb);