threads / patch / 13939

patchrun-command documentation: add 4 missing slashes

Subject: [PATCH] run-command documentation: add 4 missing slashes

## tl;dr

One message between Jun 14, 2008 and Jun 14, 2008. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Miklos Vajna· Jun 14, 2008, 01:01 UTC · lore

When initializing the struct async and struct child_process structures, the documentation suggested "clearing" the structure with '0' instead of '\0'.

Also asciidoc would parse '\0' as a markup, changing it to \'0' prevents this.

Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
---
 Documentation/technical/api-run-command.txt |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
Show changes to Documentation/technical/api-run-command.txt +2 −2
diff --git a/Documentation/technical/api-run-command.txt b/Documentation/technical/api-run-command.txt
index c364a22..6591db9 100644
--- a/Documentation/technical/api-run-command.txt
+++ b/Documentation/technical/api-run-command.txt
@@ -63,7 +63,7 @@ command to run in a sub-process.
 
 The caller:
 
-1. allocates and clears (memset(&chld, '0', sizeof(chld));) a
+1. allocates and clears (memset(&chld, \'\0', sizeof(chld));) a
    struct child_process variable;
 2. initializes the members;
 3. calls start_command();
@@ -136,7 +136,7 @@ to produce output that the caller reads.
 
 The caller:
 
-1. allocates and clears (memset(&asy, '0', sizeof(asy));) a
+1. allocates and clears (memset(&asy, \'\0', sizeof(asy));) a
    struct async variable;
 2. initializes .proc and .data;
 3. calls start_async();
-- 
1.5.6.rc2.dirty

← back to recent threads