diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2022-11-16 10:29:19 +0100 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2022-11-18 16:21:12 +0100 |
commit | 007ff40bf440d72d2ca4ffed26b6b2ea752b1562 (patch) | |
tree | 705472f3938e5a1f1e7b988d66c1f4d7e884e999 /lib/fstree/mknode.c | |
parent | fefcbb9710c87dcadab7dba5af52cb94b06625ac (diff) |
filemap xattr: use file istream from libio instead of stdio FILE
The line-by-line reading function in the io library was specifically
added for this kind of use case, so we don't have to handle trimming
of lines, don't have to touch getline() and it's convoluted error
handling (return value -1 could mean either EOF or error).
The code that searches for '\n' and replaces it with '\0' can be
removed as well and a memory leak involving "line" is removed along
the way.
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/fstree/mknode.c')
0 files changed, 0 insertions, 0 deletions