projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
datapath: Get rid of compat.h, compat26.h in favor of modern approach.
[openvswitch]
/
build-aux
/
check-structs
diff --git
a/build-aux/check-structs
b/build-aux/check-structs
index f582e2bd7ba53cb28f6928d3688d987ef6130fef..536045fe479c47a896a9988669d89dd32c0d5b99 100755
(executable)
--- a/
build-aux/check-structs
+++ b/
build-aux/check-structs
@@
-1,5
+1,6
@@
#! /usr/bin/python
#! /usr/bin/python
+import os.path
import sys
import re
import sys
import re
@@
-193,10
+194,7
@@
def checkStructs():
sys.exit(1)
if '--help' in sys.argv:
sys.exit(1)
if '--help' in sys.argv:
- argv0 = sys.argv[0]
- slash = argv0.rfind('/')
- if slash:
- argv0 = argv0[slash + 1:]
+ argv0 = os.path.basename(sys.argv[0])
print '''\
%(argv0)s, for checking struct and struct member alignment
usage: %(argv0)s HEADER [HEADER]...
print '''\
%(argv0)s, for checking struct and struct member alignment
usage: %(argv0)s HEADER [HEADER]...