Unfortunately, code formatters change their behaviour between versions.
The code currently requires astyle version 3.x, so check this before
running astyle. If the wrong version is installed, print an error.
git log > ChangeLog
astyle:
+ @astyle --version | grep -q "Version 3" || (echo 'ERROR: astyle version 3 required!' 1>&2 && exit 1)
astyle --options=.astylerc -nQ \
src/*.[ch] \
src/ed25519/e*.[ch] \
}
interface->if_name = strdup(if_name);
+
assert(interface->if_name);
// Connect one end of the the veth pair to the namespace's interface
assert(sprintf(cmd, "ip link set %s netns %s name %s", eth_pairs[i], ns[i]->name, interface->if_name) >= 0);
+
assert(system(cmd) == 0);
} else {