diff options
| author | David Gibson <david@gibson.dropbear.id.au> | 2026-05-11 20:03:17 +1000 |
|---|---|---|
| committer | Stefano Brivio <sbrivio@redhat.com> | 2026-05-12 00:03:59 +0200 |
| commit | db02221ceee1ec01d74ed15d5d5e2d8997c54f51 (patch) | |
| tree | b60d555d3f7cf3ffa1a95d97daedb8f918ccfc17 /test/lib | |
| parent | 5b3ca87079e7a356ba0036ebb0be0a37def35e38 (diff) | |
| download | passt-db02221ceee1ec01d74ed15d5d5e2d8997c54f51.tar passt-db02221ceee1ec01d74ed15d5d5e2d8997c54f51.tar.gz passt-db02221ceee1ec01d74ed15d5d5e2d8997c54f51.tar.bz2 passt-db02221ceee1ec01d74ed15d5d5e2d8997c54f51.tar.lz passt-db02221ceee1ec01d74ed15d5d5e2d8997c54f51.tar.xz passt-db02221ceee1ec01d74ed15d5d5e2d8997c54f51.tar.zst passt-db02221ceee1ec01d74ed15d5d5e2d8997c54f51.zip | |
conf: Fix not-actually-const parameter to conf_runas() and conf_ugid()
Commit 4af3d83170fd changed the @opt parameter to conf_runas() to a const
pointer, to remove a cppcheck error. However, that error was a false
positive. We *do* modify that parameter via an aliased pointer within it
retreived from strchr(). At least with gcc 16.1.1 that now causes a
"discards const" warning. Revert that change and instead directly suppress
the cppcheck warning.
Fixes: 4af3d83170fd ("treewide: Fix more pointers which can be const")
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Laurent Vivier <lvivier@redhat.com>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'test/lib')
0 files changed, 0 insertions, 0 deletions
