[ovs-dev,01/21] extract-odp-netlink-h: Portablitiy improvement
diff mbox

Message ID 1445228952-22445-1-git-send-email-yamamoto@midokura.com
State Awaiting Upstream
Headers show

Commit Message

Takashi Yamamoto Oct. 19, 2015, 4:28 a.m. UTC
\t is GNU sed extension.  Use [[:space:]] instead.

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

Comments

Ben Pfaff Nov. 9, 2015, 11:19 p.m. UTC | #1
On Mon, Oct 19, 2015 at 01:28:52PM +0900, YAMAMOTO Takashi wrote:
> \t is GNU sed extension.  Use [[:space:]] instead.
> 
> Signed-off-by: YAMAMOTO Takashi <yamamoto@midokura.com>

Acked-by: Ben Pfaff <blp@ovn.org>

Patch
diff mbox

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>,