Signed-off-by: Sami Kerola <kerolasa@xxxxxx> --- sys-utils/Makemodule.am | 2 +- sys-utils/ipcs.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/sys-utils/Makemodule.am b/sys-utils/Makemodule.am index a6e3c07..e20c6fb 100644 --- a/sys-utils/Makemodule.am +++ b/sys-utils/Makemodule.am @@ -16,7 +16,7 @@ ipcrm_LDADD = $(LDADD) libcommon.la usrbin_exec_PROGRAMS += ipcs dist_man_MANS += sys-utils/ipcs.1 -ipcs_SOURCES = sys-utils/ipcs.c +ipcs_SOURCES = sys-utils/ipcs.c lib/strutils.c usrbin_exec_PROGRAMS += renice dist_man_MANS += sys-utils/renice.1 diff --git a/sys-utils/ipcs.c b/sys-utils/ipcs.c index a380718..b5fcd17 100644 --- a/sys-utils/ipcs.c +++ b/sys-utils/ipcs.c @@ -35,6 +35,7 @@ #include "nls.h" #include "closestream.h" #include "pathnames.h" +#include "strutils.h" #include "xalloc.h" /* @@ -629,7 +630,7 @@ int main (int argc, char **argv) while ((opt = getopt_long(argc, argv, options, longopts, NULL)) != -1) { switch (opt) { case 'i': - id = atoi (optarg); + id = strtos32_or_err(optarg, _("failed to parse argument")); print = 1; break; case 'a': -- 1.7.12.3 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html