diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-02-08 11:19:07 -0500 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-02-09 21:26:04 -0500 |
commit | d717f24d8c68081caae2374cf5ea6c4e62c490fc (patch) | |
tree | 325008cf6d2fea2dfa15e4d49ae4d4d79fb1ff2b /scripts/kconfig/lkc.h | |
parent | 9e3e10c725360b9d07018cfcd5b7b6b7d325fae5 (diff) |
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); | |||
114 | int file_write_dep(const char *name); | 114 | int file_write_dep(const char *name); |
115 | void *xmalloc(size_t size); | 115 | void *xmalloc(size_t size); |
116 | void *xcalloc(size_t nmemb, size_t size); | 116 | void *xcalloc(size_t nmemb, size_t size); |
117 | void *xrealloc(void *p, size_t size); | ||
117 | 118 | ||
118 | struct gstr { | 119 | struct gstr { |
119 | size_t len; | 120 | size_t len; |