summaryrefslogtreecommitdiff
path: root/ctdb
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2019-06-25 10:03:44 +1000
committerAmitay Isaacs <amitay@samba.org>2019-07-05 05:03:25 +0000
commite0b33c5549ffb1a06270af5e2b4a199496add90d (patch)
treef81e4afffc038aa5fd87b6a3be5d03f05d06cabd /ctdb
parent755a9e654feaa7265975a1f02ea2f59fd30d09a9 (diff)
downloadsamba-e0b33c5549ffb1a06270af5e2b4a199496add90d.tar.gz
ctdb-build: Tweak hacking of rpcgen output
csbuild doesn't like the hack where variable buf is initialised to itself to avoid an unused variable warning. buf is unused so remove it instead. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb')
-rw-r--r--ctdb/wscript2
1 files changed, 1 insertions, 1 deletions
diff --git a/ctdb/wscript b/ctdb/wscript
index 614e042bd70..51a09fdc63d 100644
--- a/ctdb/wscript
+++ b/ctdb/wscript
@@ -634,7 +634,7 @@ def build(bld):
target='utils/smnotify/smnotify.h',
rule='rpcgen -h ${SRC} > ${TGT}')
- xdr_buf_hack = 'sed -e "s@^\([ \t]*register int32_t \*buf\);@\\1 = buf;@"'
+ xdr_buf_hack = 'grep -Fv "register int32_t *buf;"'
bld.SAMBA_GENERATOR('ctdb-smnotify-x',
source='utils/smnotify/smnotify.x',