summaryrefslogtreecommitdiffstats
path: root/scripts/kconfig/lkc.h
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2018-02-17 03:38:31 +0900
committerMasahiro Yamada <yamada.masahiro@socionext.com>2018-03-02 00:26:47 +0900
commitcd81fc82b93fa408c30e08f59e5ef8caaa91d1d2 (patch)
tree5c6024076d70c2a392fb3207d6ba737ef7e5843b /scripts/kconfig/lkc.h
parent6c49f359ca14f973970324afc9b20208fa0bbad5 (diff)
downloadlinux-cd81fc82b93fa408c30e08f59e5ef8caaa91d1d2.tar.gz
linux-cd81fc82b93fa408c30e08f59e5ef8caaa91d1d2.tar.bz2
linux-cd81fc82b93fa408c30e08f59e5ef8caaa91d1d2.zip
kconfig: add xstrdup() helper
We already have xmalloc(), xcalloc(), and xrealloc((). Add xstrdup() as well to save tedious error handling. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'scripts/kconfig/lkc.h')
-rw-r--r--scripts/kconfig/lkc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/kconfig/lkc.h b/scripts/kconfig/lkc.h
index 4e23febbe4b2..2d5ec2d0e952 100644
--- a/scripts/kconfig/lkc.h
+++ b/scripts/kconfig/lkc.h
@@ -115,6 +115,7 @@ int file_write_dep(const char *name);
void *xmalloc(size_t size);
void *xcalloc(size_t nmemb, size_t size);
void *xrealloc(void *p, size_t size);
+char *xstrdup(const char *s);
struct gstr {
size_t len;