diff options
| author | Přemysl Janouch <p.janouch@gmail.com> | 2015-12-13 01:40:03 +0100 | 
|---|---|---|
| committer | Přemysl Janouch <p.janouch@gmail.com> | 2015-12-13 01:40:03 +0100 | 
| commit | 50c8ef12acd11e001050588745685dccf76e8dbd (patch) | |
| tree | 914e9cc7faadccf255cadc99cdc7ced686371070 /json-rpc-shell.c | |
| parent | f1a83abdd8072b0f5672cb0594dc3818bff0e22e (diff) | |
| download | json-rpc-shell-50c8ef12acd11e001050588745685dccf76e8dbd.tar.gz json-rpc-shell-50c8ef12acd11e001050588745685dccf76e8dbd.tar.xz json-rpc-shell-50c8ef12acd11e001050588745685dccf76e8dbd.zip  | |
Bump liberty
Diffstat (limited to 'json-rpc-shell.c')
| -rw-r--r-- | json-rpc-shell.c | 9 | 
1 files changed, 3 insertions, 6 deletions
diff --git a/json-rpc-shell.c b/json-rpc-shell.c index d6c47ff..9ae8451 100644 --- a/json-rpc-shell.c +++ b/json-rpc-shell.c @@ -44,9 +44,6 @@  #include <langinfo.h>  #include <locale.h> -#include <signal.h> -#include <strings.h> -  #include <arpa/inet.h>  #include <ev.h> @@ -68,7 +65,7 @@  // --- Configuration (application-specific) ------------------------------------ -static struct config_item g_config_table[] = +static struct simple_config_item g_config_table[] =  {  	{ ATTR_PROMPT,     NULL,  "Terminal attributes for the prompt"       },  	{ ATTR_RESET,      NULL,  "String to reset terminal attributes"      }, @@ -537,7 +534,7 @@ load_config (struct app_context *ctx)  	map.free = free;  	struct error *e = NULL; -	if (!read_config_file (&map, &e)) +	if (!simple_config_update_from_file (&map, &e))  	{  		print_error ("error loading configuration: %s", e->message);  		error_free (e); @@ -2043,7 +2040,7 @@ parse_program_arguments (struct app_context *ctx, int argc, char **argv,  		}  		break;  	case 'w': -		call_write_default_config (optarg, g_config_table); +		call_simple_config_write_default (optarg, g_config_table);  		exit (EXIT_SUCCESS);  	default:  | 
