aboutsummaryrefslogtreecommitdiff
path: root/unittest
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2017-02-18 17:03:16 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2017-03-11 15:41:48 +0100
commitbd5fd5d6cf42732c4a34c10d390d3596615e9a47 (patch)
tree6a50cd0cdf34cc800240224a33dc9a780c573ba2 /unittest
parent735d7eebcf132c1146da14989ed70fda2f01c06f (diff)
downloadlibnitrokey-bd5fd5d6cf42732c4a34c10d390d3596615e9a47.tar.gz
libnitrokey-bd5fd5d6cf42732c4a34c10d390d3596615e9a47.tar.bz2
Remove unnecessary extern keyword from C API
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'unittest')
-rw-r--r--unittest/conftest.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/unittest/conftest.py b/unittest/conftest.py
index 88bf7d0..f43f153 100644
--- a/unittest/conftest.py
+++ b/unittest/conftest.py
@@ -22,8 +22,8 @@ def C(request):
a = iter(declarations)
for declaration in a:
- if declaration.startswith('extern') and not '"C"' in declaration:
- declaration = declaration.replace('extern', '').strip()
+ if declaration.startswith('NK_C_API'):
+ declaration = declaration.replace('NK_C_API', '').strip()
while not ';' in declaration:
declaration += (next(a)).strip()
print(declaration)