]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
make locally used variables static
authorLothar Waßmann <LW@KARO-electronics.de>
Thu, 14 Jun 2012 09:43:59 +0000 (11:43 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 14 Jun 2012 09:43:59 +0000 (11:43 +0200)
net/bootp.c
net/bootp.h

index 9e324769db12e07b49b4a6dda91c01487d1fa035..621c3752a280ee0a0c5f51c756d09cf934a6a8f8 100644 (file)
 #define CONFIG_DHCP_MIN_EXT_LEN 64
 #endif
 
-ulong          BootpID;
+static ulong           BootpID;
 int            BootpTry;
 #ifdef CONFIG_BOOTP_RANDOM_DELAY
-ulong          seed1, seed2;
+static ulong           seed1, seed2;
 #endif
 
 #if defined(CONFIG_CMD_DHCP)
-dhcp_state_t dhcp_state = INIT;
-unsigned long dhcp_leasetime = 0;
-IPaddr_t NetDHCPServerIP = 0;
+static dhcp_state_t dhcp_state = INIT;
+static unsigned long dhcp_leasetime = 0;
+static IPaddr_t NetDHCPServerIP = 0;
 static void DhcpHandler(uchar *pkt, unsigned dest, IPaddr_t sip, unsigned src,
                        unsigned len);
 
index 50625abea1839e6ecff7d04c8137a3ab6ca64c32..882a060969c7f9554a0b40ca6ca8e44fd37fe033 100644 (file)
@@ -56,13 +56,7 @@ typedef struct
  */
 
 /* bootp.c */
-extern ulong   BootpID;                /* ID of cur BOOTP request              */
-extern char    BootFile[128];          /* Boot file name                       */
 extern int     BootpTry;
-#ifdef CONFIG_BOOTP_RANDOM_DELAY
-extern ulong   seed1, seed2;           /* seed for random BOOTP delay          */
-#endif
-
 
 /* Send a BOOTP request */
 extern void    BootpRequest (void);