Skip to content

Updates#64

Merged
ac000 merged 3 commits into
masterfrom
updates
May 19, 2026
Merged

Updates#64
ac000 merged 3 commits into
masterfrom
updates

Conversation

@ac000
Copy link
Copy Markdown
Owner

@ac000 ac000 commented May 19, 2026

No description provided.

Signed-off-by: Andrew Clayton <ac@sigsegv.uk>
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates CLI behavior around logging configuration parsing and refreshes the Individuals Capital Gains Income (ICGI) command/endpoint mappings to reflect newer API operations.

Changes:

  • Adjusts set_log_fp() to avoid mutating the original log_level string by duplicating it before parsing.
  • Updates ICGI “Residential Property Disposals” commands: renames the prior get command to non-ppd-get and adds a new ppd-get endpoint.
  • Updates the ICGI module copyright year range.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/mtd-cli.c Changes how the MTD_CLI_OPT_LOG_LEVEL value is parsed before opening a log file.
src/mtd-cli-icgi.c Renames/extends ICGI residential property disposal commands and maps them to updated API endpoints.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/mtd-cli.c
ac000 added 2 commits May 19, 2026 05:31
GCC 16 is throwing

mtd-cli.c: In function ‘set_log_fp’:
mtd-cli.c:397:13: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  397 |         ptr = strchr(log_level, ':');
      |             ^
mtd-cli.c:400:14: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  400 |         ptrm = strchr(log_level, '+');
      |

IIRC this is due to changes in the return value of various string
functions, now if they take a const src parameter they will return a
pointer to const string.

We pass log_level in as a const string, but then we may end up modifying
it through a non-const pointer. Best to just take a copy of it and
operate on that.

Signed-off-by: Andrew Clayton <ac@sigsegv.uk>
Signed-off-by: Andrew Clayton <ac@sigsegv.uk>
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

@ac000 ac000 merged commit bb4873f into master May 19, 2026
12 checks passed
@ac000 ac000 deleted the updates branch May 19, 2026 04:47
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