mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
Remove the uname()/sscanf()-based kernel version gate (Linux < 2.6), which is long obsolete and does not belong in user-space argument validation. While touching the code, replace the repeated warnx() + exit(1) pattern with errx(EXIT_FAILURE, ...) in the option sanity checks to reduce boilerplate and keep error paths consistent. Behaviour is unchanged for supported environments; the version gate is dropped because it is obsolete. Reviewed-by: Jan Höppner <hoeppner@linux.ibm.com> Signed-off-by: Jan Polensky <japo@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>