diff options
author | David Malcolm <dmalcolm@redhat.com> | 2013-02-01 16:45:42 -0500 |
---|---|---|
committer | David Malcolm <dmalcolm@redhat.com> | 2013-02-01 16:45:42 -0500 |
commit | dc309d6b2781dc3810021d2e4e2d669f40227b63 (patch) | |
tree | 6a884e55594b7d6dc8ea430e639a539a7058be3a /python-ethtool/etherinfo_ipv6_obj.c | |
parent | 7ff5e2746b3955e50c92ffe61bc7390e6aecbfda (diff) | |
download | python-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