Skip to content

Commit 07eec62

Browse files
akpm00torvalds
authored andcommitted
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: Mark Brown <broonie@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 94f9192 commit 07eec62

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎Documentation/spi/spidev_test.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ static void hex_dump(const void *src, size_t length, size_t line_size, char *pre
8080
* Unescape - process hexadecimal escape character
8181
* converts shell input "\x23" -> 0x23
8282
*/
83-
int unespcape(char *_dst, char *_src, size_t len)
83+
static int unescape(char *_dst, char *_src, size_t len)
8484
{
8585
int ret = 0;
8686
char *src = _src;
@@ -304,7 +304,7 @@ int main(int argc, char *argv[])
304304
size = strlen(input_tx+1);
305305
tx = malloc(size);
306306
rx = malloc(size);
307-
size = unespcape((char *)tx, input_tx, size);
307+
size = unescape((char *)tx, input_tx, size);
308308
transfer(fd, tx, rx, size);
309309
free(rx);
310310
free(tx);

0 commit comments

Comments
 (0)