hgbook

annotate en/examples/mq.tarball.qinit.out @ 252:f2061ece8ed9

Fix file printed in first MQ "understanding patches" example
author Alexandre Perrin <makoto.kaworu@gmail.com>
date Wed May 30 22:02:48 2007 -0700 (2007-05-30)
parents
children bd8d96d3703d
rev   line source
bos@144 1 $ \textbf{cd netplug}
bos@144 2 $ \textbf{hg qinit}
bos@144 3 $ \textbf{hg qnew -m 'fix build problem with gcc 4' build-fix.patch}
bos@144 4 $ \textbf{perl -pi -e 's/int addr_len/socklen_t addr_len/' netlink.c}
bos@144 5 $ \textbf{hg qrefresh}
bos@144 6 $ \textbf{hg tip -p}
bos@144 7 changeset:
bos@144 8 tag: qtip
bos@144 9 tag: build-fix.patch
bos@144 10 tag: tip
bos@144 11 tag: qbase
bos@144 12 user: Bryan O'Sullivan <bos@serpentine.com>
bos@144 13
bos@144 14 summary: fix build problem with gcc 4
bos@144 15
bos@144 16 diff -r -r netlink.c
bos@144 17
bos@144 18
bos@144 19 @@ -275,7 +275,7 @@ netlink_open(void)
bos@144 20 exit(1);
bos@144 21 \}
bos@144 22
bos@144 23 - int addr_len = sizeof(addr);
bos@144 24 + socklen_t addr_len = sizeof(addr);
bos@144 25
bos@144 26 if (getsockname(fd, (struct sockaddr *) &addr, &addr_len) == -1) \{
bos@144 27 do_log(LOG_ERR, "Could not get socket details: %m");
bos@144 28