[syslinux:lwip] pxe: make url_set_ip() static

syslinux-bot for H. Peter Anvin hpa at zytor.com
Sun Apr 24 21:03:24 PDT 2011


Commit-ID:  782a60a49cf263e9ce99897cef530deb02af00dd
Gitweb:     http://syslinux.zytor.com/commit/782a60a49cf263e9ce99897cef530deb02af00dd
Author:     H. Peter Anvin <hpa at zytor.com>
AuthorDate: Sun, 24 Apr 2011 14:02:39 -0700
Committer:  H. Peter Anvin <hpa at zytor.com>
CommitDate: Sun, 24 Apr 2011 14:02:39 -0700

pxe: make url_set_ip() static

url_set_ip() is now only used in one place, so make it static.

Signed-off-by: H. Peter Anvin <hpa at zytor.com>


---
 core/fs/pxe/pxe.c |    2 +-
 core/fs/pxe/pxe.h |    1 -
 2 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/core/fs/pxe/pxe.c b/core/fs/pxe/pxe.c
index 0f76804..5789bb6 100644
--- a/core/fs/pxe/pxe.c
+++ b/core/fs/pxe/pxe.c
@@ -344,7 +344,7 @@ static uint32_t pxe_getfssec(struct file *file, char *buf,
 /*
  * Assign an IP address to a URL
  */
-void url_set_ip(struct url_info *url)
+static void url_set_ip(struct url_info *url)
 {
     url->ip = 0;
     if (url->host)
diff --git a/core/fs/pxe/pxe.h b/core/fs/pxe/pxe.h
index b23f7a7..841e5ef 100644
--- a/core/fs/pxe/pxe.h
+++ b/core/fs/pxe/pxe.h
@@ -223,7 +223,6 @@ bool ip_ok(uint32_t);
 int pxe_call(int, void *);
 extern __lowmem char packet_buf[PKTBUF_SIZE] __aligned(16);
 int pxe_getc(struct inode *inode);
-void url_set_ip(struct url_info *);
 void free_socket(struct inode *inode);
 
 /* undiif.c */



More information about the Syslinux-commits mailing list