diff options
author | Masahiro Yamada | 2018-02-08 17:19:07 +0100 |
---|---|---|
committer | Masahiro Yamada | 2018-02-10 03:26:04 +0100 |
commit | d717f24d8c68081caae2374cf5ea6c4e62c490fc (patch) | |
tree | 325008cf6d2fea2dfa15e4d49ae4d4d79fb1ff2b /scripts/kconfig/lkc.h | |
parent | kconfig: send error messages to stderr (diff) | |
download | kernel-qcow2-linux-d717f24d8c68081caae2374cf5ea6c4e62c490fc.tar.gz kernel-qcow2-linux-d717f24d8c68081caae2374cf5ea6c4e62c490fc.tar.xz kernel-qcow2-linux-d717f24d8c68081caae2374cf5ea6c4e62c490fc.zip |
kconfig: add xrealloc() helper
We already have xmalloc(), xcalloc(). Add xrealloc() 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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/kconfig/lkc.h b/scripts/kconfig/lkc.h index 16cb62b92650..4e23febbe4b2 100644 --- a/scripts/kconfig/lkc.h +++ b/scripts/kconfig/lkc.h @@ -114,6 +114,7 @@ struct file *file_lookup(const char *name); 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); struct gstr { size_t len; |