diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2015-03-25 13:27:03 +1100 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2015-03-27 19:01:20 +1100 |
commit | 41715c1f389b07803879ce3bb7a12ad7c60a2385 (patch) | |
tree | ad0c150f8d13b1fa139477865e88af1c2fb18c57 | |
parent | 48ff58f37821ff8f3d740c664bb7bea36cc085d6 (diff) | |
download | linux-41715c1f389b07803879ce3bb7a12ad7c60a2385.tar.gz linux-41715c1f389b07803879ce3bb7a12ad7c60a2385.tar.xz |
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.
Cc: Mark Brown <broonie@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
-rw-r--r-- | Documentation/spi/spidev_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/spi/spidev_test.c b/Documentation/spi/spidev_test.c index 94f574b0fdb2..135b3f592b83 100644 --- a/Documentation/spi/spidev_test.c +++ b/Documentation/spi/spidev_test.c @@ -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); |