Commit 07eec628 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

Documentation/spi/spidev_test.c: fix warning

Documentation/spi/spidev_test.c:83:5: warning: no previous prototype for 'unespcape' [-Wmissing-prototypes]

fix spelling too.
Acked-by: default avatarMark Brown <broonie@kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 94f91922
...@@ -80,7 +80,7 @@ static void hex_dump(const void *src, size_t length, size_t line_size, char *pre ...@@ -80,7 +80,7 @@ static void hex_dump(const void *src, size_t length, size_t line_size, char *pre
* Unescape - process hexadecimal escape character * Unescape - process hexadecimal escape character
* converts shell input "\x23" -> 0x23 * converts shell input "\x23" -> 0x23
*/ */
int unespcape(char *_dst, char *_src, size_t len) static int unescape(char *_dst, char *_src, size_t len)
{ {
int ret = 0; int ret = 0;
char *src = _src; char *src = _src;
...@@ -304,7 +304,7 @@ int main(int argc, char *argv[]) ...@@ -304,7 +304,7 @@ int main(int argc, char *argv[])
size = strlen(input_tx+1); size = strlen(input_tx+1);
tx = malloc(size); tx = malloc(size);
rx = malloc(size); rx = malloc(size);
size = unespcape((char *)tx, input_tx, size); size = unescape((char *)tx, input_tx, size);
transfer(fd, tx, rx, size); transfer(fd, tx, rx, size);
free(rx); free(rx);
free(tx); free(tx);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment