summaryrefslogtreecommitdiffstats
path: root/python-ethtool/etherinfo_ipv6_obj.c
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2013-02-01 16:45:42 -0500
committerDavid Malcolm <dmalcolm@redhat.com>2013-02-01 16:45:42 -0500
commitdc309d6b2781dc3810021d2e4e2d669f40227b63 (patch)
tree6a884e55594b7d6dc8ea430e639a539a7058be3a /python-ethtool/etherinfo_ipv6_obj.c
parent7ff5e2746b3955e50c92ffe61bc7390e6aecbfda (diff)
downloadpython-ethtool-dc309d6b2781dc3810021d2e4e2d669f40227b63.tar.gz
python-ethtool-dc309d6b2781dc3810021d2e4e2d669f40227b63.tar.xz
python-ethtool-dc309d6b2781dc3810021d2e4e2d669f40227b63.zip
"char *devname" -> "const char *devname" throughout
Calling PyArg_ParseTuple(args, "s", &devname) populates devname with a pointer to the internal storage of an (supposedly) immutable string. Make sure the buffer doesn't get mutated by making these pointers be "const char *", rather than just "char *". Found using cpychecker
Diffstat (limited to 'python-ethtool/etherinfo_ipv6_obj.c')
0 files changed, 0 insertions, 0 deletions