Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix passing of argument with incompatible pointer type to fts_open() #273

Merged
merged 1 commit into from
Dec 7, 2023

Commits on Dec 6, 2023

  1. Fix passing of argument with incompatible pointer type to fts_open()

    With GCC 14, the incompatible-pointer-types warning will turn into an
    error by default. Due to this, the compilation of selint with newer
    versions of GCC would fail.
    
    This patch fixes 2 calls to fts_open() where this error occurs. As
    fts_open() expects an array of `char * const`, not `const char * const`,
    and the documentation does not guarantee that fts_open() will not modify
    the string, the argument needs to be copied (or initialized as an array
    instead of a pointer).
    
    Signed-off-by: Juraj Marcin <[email protected]>
    JurajMarcin committed Dec 6, 2023
    Configuration menu
    Copy the full SHA
    eb59ed7 View commit details
    Browse the repository at this point in the history