~vcs-imports/pmake/main

Viewing all changes in revision 4959.

  • Committer: rillig
  • Date: 2023-09-10 10:18:05 UTC
  • Revision ID: rillig-20230910101805-nn5casia2su6flo2
make: fix lint warning about strchr

main.c(416): warning:
    call to 'strchr' effectively discards 'const' from argument [346]

Even though C23 turns strchr into a const-generic function, it doesn't
do the same for strtol, so use separate pointers for the current parsing
position and the end of a number, as their constness differs.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: