* [PATCH] run-command documentation: add 4 missing slashes
@ 2008-06-14 1:01 Miklos Vajna
0 siblings, 0 replies; only message in thread
From: Miklos Vajna @ 2008-06-14 1:01 UTC (permalink / raw)
To: Junio C Hamano; +Cc: git
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(-)
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2008-06-14 1:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-14 1:01 [PATCH] run-command documentation: add 4 missing slashes Miklos Vajna
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).