Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | Upstream-Status: Backport |
| 2 | |
| 3 | Original commit: http://git.savannah.gnu.org/cgit/grub.git/commit/grub-core/net/bootp.c?id=f06c2172c0b32052f22e37523445cf8e7affaea3 |
| 4 | |
| 5 | From 149d2a14f4723778ced23f439487201ccbf1a2c9 Mon Sep 17 00:00:00 2001 |
| 6 | From: Khem Raj <raj.khem@gmail.com> |
| 7 | Date: Thu, 23 Apr 2015 07:03:34 +0000 |
| 8 | Subject: [PATCH] parse_dhcp_vendor: Add missing const qualifiers. |
| 9 | |
| 10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 11 | --- |
| 12 | grub-core/net/bootp.c | 4 ++-- |
| 13 | 1 file changed, 2 insertions(+), 2 deletions(-) |
| 14 | |
| 15 | diff --git a/grub-core/net/bootp.c b/grub-core/net/bootp.c |
| 16 | index bc07d53..44131ed 100644 |
| 17 | --- a/grub-core/net/bootp.c |
| 18 | +++ b/grub-core/net/bootp.c |
| 19 | @@ -52,9 +52,9 @@ set_env_limn_ro (const char *intername, const char *suffix, |
| 20 | } |
| 21 | |
| 22 | static void |
| 23 | -parse_dhcp_vendor (const char *name, void *vend, int limit, int *mask) |
| 24 | +parse_dhcp_vendor (const char *name, const void *vend, int limit, int *mask) |
| 25 | { |
| 26 | - grub_uint8_t *ptr, *ptr0; |
| 27 | + const grub_uint8_t *ptr, *ptr0; |
| 28 | |
| 29 | ptr = ptr0 = vend; |
| 30 | |
| 31 | -- |
| 32 | 2.1.4 |
| 33 | |