Skip to content

Use cupsGetFile() API#1193

Merged
zdohnal merged 1 commit intoOpenPrinting:masterfrom
SiliconA-Z:API
Mar 11, 2025
Merged

Use cupsGetFile() API#1193
zdohnal merged 1 commit intoOpenPrinting:masterfrom
SiliconA-Z:API

Conversation

@SiliconA-Z
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown
Member

@zdohnal zdohnal left a comment

Choose a reason for hiding this comment

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

Thank you for the PR! In general the PR looks ok, I would raise only two things:

  1. unlink() if cupsGetFile() fails looks redundant - unlink() for errors happens in cupsGetFile(), so if you don't tell the reason why it should stay, let's remove it.
  2. cupsTempFd() is deprecated in 2.5, so we should use cupsCreateTempFd() - the migration looks straightforward, see definition of cupsTempFd(), which uses the new function already.

Comment thread cgi-bin/admin.c Outdated
Copy link
Copy Markdown
Member

@zdohnal zdohnal left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@zdohnal zdohnal merged commit 64780ad into OpenPrinting:master Mar 11, 2025
3 of 6 checks passed
@SiliconA-Z SiliconA-Z deleted the API branch March 11, 2025 11:28
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