HomeClusterLabs Projects

Refactor: remoted: Use getline() instead of fgets()
582bed69cd90Unpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.
This commit no longer exists in the repository. It may have been part of a branch which was deleted.This commit has been deleted in the repository: it is no longer reachable from any branch, tag, or ref.

Description

Refactor: remoted: Use getline() instead of fgets()

getline() allocates a buffer large enough to hold the entire input line,
avoiding the need to worry about LINE_MAX (which glibc doesn't enforce
anyway).

Also define a constant for the file name instead of taking an argument.

Signed-off-by: Reid Wahl <nrwahl@protonmail.com>

Details

Provenance
nrwahl2Authored on Mar 6 2025, 6:00 AM

Event Timeline

Commit No Longer Exists

This commit no longer exists in the repository.