hgbook

annotate en/examples/results/mq.tarball.qinit.out @ 611:4432ad34b8e5

Check in example outputs with begin/end markers.
author Bryan O'Sullivan <bos@serpentine.com>
date Tue Mar 31 12:19:01 2009 -0700 (2009-03-31)
parents 0d5935744f87
children
rev   line source
bos@611 1 <!-- BEGIN mq.tarball.qinit -->
bos@564 2 <screen><prompt>$</prompt> <userinput>cd netplug</userinput>
bos@564 3 <prompt>$</prompt> <userinput>hg qinit</userinput>
bos@564 4 <prompt>$</prompt> <userinput>hg qnew -m 'fix build problem with gcc 4' build-fix.patch</userinput>
bos@564 5 <prompt>$</prompt> <userinput>perl -pi -e 's/int addr_len/socklen_t addr_len/' netlink.c</userinput>
bos@564 6 <prompt>$</prompt> <userinput>hg qrefresh</userinput>
bos@564 7 <prompt>$</prompt> <userinput>hg tip -p</userinput>
bos@144 8 changeset:
bos@144 9 tag: qtip
bos@144 10 tag: build-fix.patch
bos@144 11 tag: tip
bos@144 12 tag: qbase
bos@564 13 user: Bryan O'Sullivan &lt;bos@serpentine.com&gt;
bos@144 14
bos@144 15 summary: fix build problem with gcc 4
bos@144 16
bos@144 17 diff -r -r netlink.c
bos@144 18
bos@144 19
hg@297 20 @@ -275,7 +275,7 @@
bos@144 21 exit(1);
bos@564 22 }
bos@144 23
bos@144 24 - int addr_len = sizeof(addr);
bos@144 25 + socklen_t addr_len = sizeof(addr);
bos@144 26
bos@564 27 if (getsockname(fd, (struct sockaddr *) &amp;addr, &amp;addr_len) == -1) {
bos@144 28 do_log(LOG_ERR, "Could not get socket details: %m");
bos@144 29
bos@564 30 </screen>
bos@611 31 <!-- END mq.tarball.qinit -->