diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2008-01-23 23:54:07 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:11:27 -0500 |
commit | 3c582b30bc2592081e9b23e253ca098fa7d57dc2 (patch) | |
tree | 258f0191bb66aee5de4fb2d19bf71d7c716bee87 /drivers/net/slhc.c | |
parent | ac97f75faae2a18648145bc6bbcdd326bac6a1c2 (diff) |
[PPP]: Sparse warning fixes.
Fix a bunch of warnings in PPP and related drivers. Mostly because
sparse doesn't like it when the the function is only marked private in
the forward declaration.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/slhc.c')
-rw-r--r-- | drivers/net/slhc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/slhc.c b/drivers/net/slhc.c index 163469739db2..d640c0f5470b 100644 --- a/drivers/net/slhc.c +++ b/drivers/net/slhc.c | |||
@@ -174,7 +174,7 @@ put16(unsigned char *cp, unsigned short x) | |||
174 | 174 | ||
175 | 175 | ||
176 | /* Encode a number */ | 176 | /* Encode a number */ |
177 | unsigned char * | 177 | static unsigned char * |
178 | encode(unsigned char *cp, unsigned short n) | 178 | encode(unsigned char *cp, unsigned short n) |
179 | { | 179 | { |
180 | if(n >= 256 || n == 0){ | 180 | if(n >= 256 || n == 0){ |
@@ -199,7 +199,7 @@ pull16(unsigned char **cpp) | |||
199 | } | 199 | } |
200 | 200 | ||
201 | /* Decode a number */ | 201 | /* Decode a number */ |
202 | long | 202 | static long |
203 | decode(unsigned char **cpp) | 203 | decode(unsigned char **cpp) |
204 | { | 204 | { |
205 | register int x; | 205 | register int x; |