Skip to content
Snippets Groups Projects
Commit 908c6b62 authored by Mike Frysinger's avatar Mike Frysinger Committed by Wolfgang Denk
Browse files

string_to_ip: constify "s" arg

parent 2e3ef6e4
No related branches found
No related tags found
No related merge requests found
...@@ -514,7 +514,7 @@ static inline int is_valid_ether_addr(const u8 *addr) ...@@ -514,7 +514,7 @@ static inline int is_valid_ether_addr(const u8 *addr)
extern void ip_to_string (IPaddr_t x, char *s); extern void ip_to_string (IPaddr_t x, char *s);
/* Convert a string to ip address */ /* Convert a string to ip address */
extern IPaddr_t string_to_ip(char *s); extern IPaddr_t string_to_ip(const char *s);
/* Convert a VLAN id to a string */ /* Convert a VLAN id to a string */
extern void VLAN_to_string (ushort x, char *s); extern void VLAN_to_string (ushort x, char *s);
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
#include <common.h> #include <common.h>
IPaddr_t string_to_ip(char *s) IPaddr_t string_to_ip(const char *s)
{ {
IPaddr_t addr; IPaddr_t addr;
char *e; char *e;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment