[ovs-dev] [PATCH 01/21] extract-odp-netlink-h: Portablitiy improvement

YAMAMOTO Takashi yamamoto at midokura.com
Mon Oct 19 04:28:52 UTC 2015


\t is GNU sed extension.  Use [[:space:]] instead.

Signed-off-by: YAMAMOTO Takashi <yamamoto at midokura.com>
---
 build-aux/extract-odp-netlink-h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/build-aux/extract-odp-netlink-h b/build-aux/extract-odp-netlink-h
index b414330..aafe69a 100755
--- a/build-aux/extract-odp-netlink-h
+++ b/build-aux/extract-odp-netlink-h
@@ -23,7 +23,7 @@ $i\
 # Use OVS's own struct eth_addr instead of a 6-byte char array.
 s,<linux/types\.h>,"openvswitch/types.h",
 s,#.*<linux/if_ether\.h>,,
-s/__u8[ \t]*\([a-zA-Z0-9_]*\)[ \t]*\[[ \t]*ETH_ALEN[ \t]*\]/struct eth_addr \1/
+s/__u8[[:space:]]*\([a-zA-Z0-9_]*\)[[:space:]]*\[[[:space:]]*ETH_ALEN[[:space:]]*\]/struct eth_addr \1/
 
 # Transform most Linux-specific __u<N> types into C99 uint<N>_t types,
 # and most Linux-specific __be<N> into Open vSwitch ovs_be<N>,
-- 
2.3.8 (Apple Git-58)




More information about the dev mailing list