diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2011-04-11 18:30:57 +0300 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2011-04-18 17:44:45 +0300 |
commit | e777b6032364e6fa9b5ff90c1ba2bdb6167bf24f (patch) | |
tree | 13a8b57aa7a638fb91f2d722235565c78e2f1cbe /include/mtd/mtd-user.h | |
parent | 8b625290dc38d0b9af7dbe896861f11ef75eea1e (diff) |
fs-tests: integck: clean-up copy_string
This is a clean-up patch which:
1. Simplifies copy_string by useng strdup instead of malloc
2. Adds an assertion which checks the input parameter agains NULL,
instead of checking it.
3. Re-names it to dup_string which looks more readable to me.
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'include/mtd/mtd-user.h')
0 files changed, 0 insertions, 0 deletions