diff options
author | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-07-12 20:20:11 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-07-12 20:20:11 +0200 |
commit | ffbab694ede33c294e5864a5e0bf4d1474446a71 (patch) | |
tree | d1bf96518d2a909215aa7820d0ea9041923d3996 /Documentation/media/uapi/v4l/capture.c.rst | |
parent | [media] doc-rst: use the right markup for footnotes (diff) | |
download | linux-ffbab694ede33c294e5864a5e0bf4d1474446a71.tar.xz linux-ffbab694ede33c294e5864a5e0bf4d1474446a71.zip |
[media] docs-rst: escape [] characters
Those characters are used for citations. Better to escape, to
avoid them to be misinterpreted.
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'Documentation/media/uapi/v4l/capture.c.rst')
-rw-r--r-- | Documentation/media/uapi/v4l/capture.c.rst | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Documentation/media/uapi/v4l/capture.c.rst b/Documentation/media/uapi/v4l/capture.c.rst index 56525a0fb2fa..4f0dead97ad2 100644 --- a/Documentation/media/uapi/v4l/capture.c.rst +++ b/Documentation/media/uapi/v4l/capture.c.rst @@ -88,7 +88,7 @@ file: media/v4l/capture.c switch (io) { case IO_METHOD_READ: - if (-1 == read(fd, buffers[0].start, buffers[0].length)) { + if (-1 == read(fd, buffers\[0\].start, buffers\[0\].length)) { switch (errno) { case EAGAIN: return 0; @@ -103,7 +103,7 @@ file: media/v4l/capture.c } } - process_image(buffers[0].start, buffers[0].length); + process_image(buffers\[0\].start, buffers\[0\].length); break; case IO_METHOD_MMAP: @@ -284,7 +284,7 @@ file: media/v4l/capture.c switch (io) { case IO_METHOD_READ: - free(buffers[0].start); + free(buffers\[0\].start); break; case IO_METHOD_MMAP: @@ -311,10 +311,10 @@ file: media/v4l/capture.c exit(EXIT_FAILURE); } - buffers[0].length = buffer_size; - buffers[0].start = malloc(buffer_size); + buffers\[0\].length = buffer_size; + buffers\[0\].start = malloc(buffer_size); - if (!buffers[0].start) { + if (!buffers\[0\].start) { fprintf(stderr, "Out of memory\\n"); exit(EXIT_FAILURE); } @@ -575,7 +575,7 @@ file: media/v4l/capture.c "-f | --format Force format to 640x480 YUYVn" "-c | --count Number of frames to grab [%i]n" "", - argv[0], dev_name, frame_count); + argv\[0\], dev_name, frame_count); } static const char short_options[] = "d:hmruofc:"; |