[syslinux:lwip] pxe, tftp: make TimeoutTable static
syslinux-bot for H. Peter Anvin
hpa at zytor.com
Thu Apr 26 15:51:02 PDT 2012
Commit-ID: eba2e602f0a8627a3420f73eed96be6aafd422e6
Gitweb: http://www.syslinux.org/commit/eba2e602f0a8627a3420f73eed96be6aafd422e6
Author: H. Peter Anvin <hpa at zytor.com>
AuthorDate: Thu, 26 Apr 2012 15:46:03 -0700
Committer: H. Peter Anvin <hpa at zytor.com>
CommitDate: Thu, 26 Apr 2012 15:46:03 -0700
pxe, tftp: make TimeoutTable static
TimeoutTable is now only used in tftp.c, so make it static.
Signed-off-by: H. Peter Anvin <hpa at zytor.com>
---
core/fs/pxe/pxe.h | 1 -
core/fs/pxe/tftp.c | 2 +-
2 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/core/fs/pxe/pxe.h b/core/fs/pxe/pxe.h
index 26cec62..530bc08 100644
--- a/core/fs/pxe/pxe.h
+++ b/core/fs/pxe/pxe.h
@@ -176,7 +176,6 @@ extern uint8_t uuid_type;
extern uint8_t uuid[];
extern uint16_t BIOS_fbm;
-extern const uint8_t TimeoutTable[];
/*
* functions
diff --git a/core/fs/pxe/tftp.c b/core/fs/pxe/tftp.c
index 9897e80..2710787 100644
--- a/core/fs/pxe/tftp.c
+++ b/core/fs/pxe/tftp.c
@@ -4,7 +4,7 @@
#include "url.h"
#include "tftp.h"
-const uint8_t TimeoutTable[] = {
+static const uint8_t TimeoutTable[] = {
2, 2, 3, 3, 4, 5, 6, 7, 9, 10, 12, 15, 18, 21, 26, 31, 37, 44,
53, 64, 77, 92, 110, 132, 159, 191, 229, 255, 255, 255, 255, 0
};
More information about the Syslinux-commits
mailing list