]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
Documentation/spi/spidev_test.c: fix warning
authorAndrew Morton <akpm@linux-foundation.org>
Tue, 7 Apr 2015 23:57:06 +0000 (09:57 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 9 Apr 2015 09:07:12 +0000 (19:07 +1000)
Documentation/spi/spidev_test.c:83:5: warning: no previous prototype for 'unespcape' [-Wmissing-prototypes]

fix spelling too.

Cc: Mark Brown <broonie@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Documentation/spi/spidev_test.c

index 94f574b0fdb25890c3e3f64a23622ee0e8fb3bea..135b3f592b83db0d00a940b435b8086b409fa3ef 100644 (file)
@@ -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
  *      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;
        char *src = _src;
@@ -304,7 +304,7 @@ int main(int argc, char *argv[])
                size = strlen(input_tx+1);
                tx = malloc(size);
                rx = malloc(size);
-               size = unespcape((char *)tx, input_tx, size);
+               size = unescape((char *)tx, input_tx, size);
                transfer(fd, tx, rx, size);
                free(rx);
                free(tx);