Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
  • linux
  • tools
  • testing
  • selftests
  • timers
  • threadtest.c
Find file BlameHistoryPermalink
  • Piotr Zalewski's avatar
    kselftest: timers: Fix const correctness · 99338cc1
    Piotr Zalewski authored Aug 19, 2024
    
    
    Make timespec pointers, pointers to const in checklist function. As a
    consequence, make list parameter in checklist function pointer to const
    as well. Const-correctness increases readability.
    
    Improvement was found by running cppcheck tool on the patched file as
    follows:
    ```
    cppcheck --enable=all \
    	tools/testing/selftests/timers/threadtest.c \
    	--suppress=missingIncludeSystem \
    	--suppress=unusedFunction
    ```
    
    Reviewed-by: default avatarShuah Khan <skhan@linuxfoundation.org>
    Signed-off-by: default avatarPiotr Zalewski <pZ010001011111@proton.me>
    Acked-by: default avatarJohn Stultz <jstultz@google.com>
    Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
    99338cc1
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7