Skip to content

lib/limits.c: setup_limits(): Simplify, calling stpspn() instead of strprefix()#1557

Open
alejandro-colomar wants to merge 1 commit intoshadow-maint:masterfrom
alejandro-colomar:stpspn
Open

lib/limits.c: setup_limits(): Simplify, calling stpspn() instead of strprefix()#1557
alejandro-colomar wants to merge 1 commit intoshadow-maint:masterfrom
alejandro-colomar:stpspn

Conversation

@alejandro-colomar
Copy link
Copy Markdown
Collaborator

@alejandro-colomar alejandro-colomar commented Mar 1, 2026

p=stpspn(p,",") jumps over any amount of leading commas, which we were doing anyway in the loop.

Cc: @kees


Revisions:

v1b
  • Rebase
$ git rd 
1:  07d932c1 = 1:  4f30a796 lib/limits.c: setup_limits(): Simplify, calling stpspn() instead of strprefix()

@alejandro-colomar alejandro-colomar self-assigned this Mar 1, 2026
…trprefix()

p=stpspn(p,",") jumps over any amount of leading commas, which we were
doing anyway in the loop.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants