xenstore.h: Put ( ) around XS_* define shifts
authorIan Jackson <ian.jackson@eu.citrix.com>
Tue, 9 Oct 2018 15:25:38 +0000 (16:25 +0100)
committerIan Jackson <ian.jackson@eu.citrix.com>
Mon, 15 Oct 2018 13:49:33 +0000 (14:49 +0100)
commit23a3ea668736440790b7372c1258b4bb694ec7ec
treed71f2583b9e44314e7242878a8a4750a5d171883
parent70c7c34cc6a14183e9548de254cf7e9b59b123f6
xenstore.h: Put ( ) around XS_* define shifts

These definitions were not properly protected from unwanted operator
precedence interactions.

Existing use sites in-tree all use & or |, so this does not change any
actual behaviour in-tree.

The same seems likely to be true in external callers.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/xenstore/include/xenstore.h