diff options
| author | Maciej Żenczykowski <maze@google.com> | 2020-06-02 12:56:37 +0000 |
|---|---|---|
| committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-06-02 12:56:37 +0000 |
| commit | 27966d71bbc2aef1b38fef786d92de6228a81378 (patch) | |
| tree | ae864941e14f6031089f97ec3dc012e319ebbebf | |
| parent | 7bb1d37d8b2aac254a5c1b7b913c46823142d0c2 (diff) | |
| parent | 246bf88519e0e1f164387f93a2945c46d1a089df (diff) | |
| download | platform_external_android-clat-27966d71bbc2aef1b38fef786d92de6228a81378.tar.gz platform_external_android-clat-27966d71bbc2aef1b38fef786d92de6228a81378.tar.bz2 platform_external_android-clat-27966d71bbc2aef1b38fef786d92de6228a81378.zip | |
cleanup - config_item_str() am: 606c53fb61 am: 246bf88519
Original change: undetermined
Change-Id: I8387a6b2eeb2d4b458810402ab90c6b67093fee9
| -rw-r--r-- | config.c | 17 |
1 files changed, 0 insertions, 17 deletions
@@ -35,23 +35,6 @@ struct clat_config Global_Clatd_Config; -/* function: config_item_str - * locates the config item and returns the pointer to a string, or NULL on failure. Caller frees - * pointer - * root - parsed configuration - * item_name - name of config item to locate - * defaultvar - value to use if config item isn't present - */ -char *config_item_str(cnode *root, const char *item_name, const char *defaultvar) { - const char *tmp; - - if (!(tmp = config_str(root, item_name, defaultvar))) { - logmsg(ANDROID_LOG_FATAL, "%s config item needed", item_name); - return NULL; - } - return strdup(tmp); -} - /* function: config_item_int16_t * locates the config item, parses the integer, and returns the pointer ret_val_ptr, or NULL on * failure |
