diff options
author | Davidlohr Bueso <dave@gnu.org> | 2010-11-16 10:47:35 -0300 |
---|---|---|
committer | Karel Zak <kzak@redhat.com> | 2010-11-23 21:06:49 +0100 |
commit | 8abcf2900297c6d53ead867c42f7c1688e8d52ca (patch) | |
tree | 77e2d666cd76d9d4c37e1c1864415c1e52d37926 /sys-utils | |
parent | e8fc977aba09ddbd89b25276fd777c3f0eef9299 (diff) | |
download | util-linux-old-8abcf2900297c6d53ead867c42f7c1688e8d52ca.tar.gz |
lib: [strutils] general purpose string handling functions
This patch replaces a few functions used throughout the source:
* Renames getnum (from schedutils) to strtol_or_err
* Moves strtosize (from lib/strtosize.c)
* Moves xstrncpy (from include/xstrncpy.h)
* Adds strnlen, strnchr and strndup if not available (remove it from libmount utils)
A few Makefile.am files were modified to compile accordingly along with trivial renaming
in schedutils source code.
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Diffstat (limited to 'sys-utils')
-rw-r--r-- | sys-utils/Makefile.am | 2 | ||||
-rw-r--r-- | sys-utils/fallocate.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys-utils/Makefile.am b/sys-utils/Makefile.am index d2b85685..a45978e3 100644 --- a/sys-utils/Makefile.am +++ b/sys-utils/Makefile.am @@ -31,7 +31,7 @@ tunelp_SOURCES = tunelp.c lp.h if BUILD_FALLOCATE usrbin_exec_PROGRAMS += fallocate -fallocate_SOURCES = fallocate.c $(top_srcdir)/lib/strtosize.c +fallocate_SOURCES = fallocate.c $(top_srcdir)/lib/strutils.c dist_man_MANS += fallocate.1 endif diff --git a/sys-utils/fallocate.c b/sys-utils/fallocate.c index fd4d2a9a..9598cf10 100644 --- a/sys-utils/fallocate.c +++ b/sys-utils/fallocate.c @@ -44,7 +44,7 @@ #endif #include "nls.h" -#include "strtosize.h" +#include "strutils.h" static void __attribute__((__noreturn__)) usage(FILE *out) |