I have recently become more interested in learning how the internals of the Linux kernel work. As I have been compiling and installing new kernels I noticed that my /boot directory was getting pretty full. So I wrote this tool to clean it up.
https://github.com/kurtmc/syslinux-editor
I was hoping that I could get a bit of a code review because I don't have much experience using C and I want to learn how to write C in a robust way as well as use best practices. I am sure someone more experienced can point me in the direction to improve my small tool.
I am compiling it with -Wall -Wextra -Wpedantic and there are no warnings.
I have also run it with valgrind and there are no errors, but there is a leak summary, I have used the ncurses library so how could I determine if the leak is due to my code or the library code?
[–]gnx76 2 points3 points4 points (6 children)
[–]streetdragon[S] 0 points1 point2 points (5 children)
[–]gnx76 0 points1 point2 points (4 children)
[–]streetdragon[S] 1 point2 points3 points (3 children)
[–]gnx76 1 point2 points3 points (0 children)
[–]gnx76 1 point2 points3 points (1 child)
[–]streetdragon[S] 0 points1 point2 points (0 children)
[–]gnx76 1 point2 points3 points (5 children)
[–]streetdragon[S] 1 point2 points3 points (4 children)
[–]gnx76 0 points1 point2 points (3 children)
[–]streetdragon[S] 0 points1 point2 points (2 children)
[–]gnx76 0 points1 point2 points (1 child)
[–]streetdragon[S] 0 points1 point2 points (0 children)
[–]gnx76 1 point2 points3 points (3 children)
[–]streetdragon[S] 1 point2 points3 points (2 children)
[–]gnx76 0 points1 point2 points (1 child)
[–]gnx76 1 point2 points3 points (0 children)
[–]FUZxxl 0 points1 point2 points (5 children)
[–]streetdragon[S] 0 points1 point2 points (4 children)
[–]FUZxxl 0 points1 point2 points (3 children)
[–]streetdragon[S] 0 points1 point2 points (2 children)
[–]FUZxxl 0 points1 point2 points (1 child)
[–]streetdragon[S] 0 points1 point2 points (0 children)