[PATCH 2/6] procfs: keep old config values if the parsing fails

2013-06-28 Thread Justus Winter
Previously if strtol failed the previous configuration value would get overwritten. Prevent this by storing the result in a temporary variable and update the configuration if the argument was parsed correctly and passed the sanity checks. * procfs/main.c (argp_parser): Keep old configuration in ca

[PATCH 2/6] procfs: keep old config values if the parsing fails

2013-06-27 Thread Justus Winter
Previously if strtol failed the previous configuration value would get overwritten. Prevent this by storing the result in a temporary variable and update the configuration if the argument was parsed correctly and passed the sanity checks. * procfs/main.c (argp_parser): Keep old configuration in ca