# HG changeset patch # User Myhailo Danylenko # Date 1269542876 -7200 # Node ID dbb001e9f800c493d1e52ce0a581fb1c5efb500a # Parent 14cd74b518ea99c2a936d7238c5fe3019897bcec Use new scr_* functions diff -r 14cd74b518ea -r dbb001e9f800 env.c --- a/env.c Sun Mar 14 21:45:48 2010 +0200 +++ b/env.c Thu Mar 25 20:47:56 2010 +0200 @@ -39,7 +39,7 @@ static module_info_t info_env_experimental = { .branch = "experimental", - .api = 5, + .api = 10, .version = PROJECT_VERSION, .description = DESCRIPTION, .requires = NULL, @@ -50,7 +50,7 @@ module_info_t info_env = { .branch = "dev", - .api = 4, + .api = 11, .version = PROJECT_VERSION, .description = DESCRIPTION, .requires = NULL, @@ -97,7 +97,7 @@ char *name = (char *) eel->data; char *value = getenv (name); - scr_LogPrint (LPRINT_NORMAL, format, name, value); + scr_log_print (LPRINT_NORMAL, format, name, value); g_free (name); } @@ -116,11 +116,11 @@ char *value = getenv (arg); if (value) - scr_LogPrint (LPRINT_NORMAL, "Env %s = %s", arg, value); + scr_log_print (LPRINT_NORMAL, "Env %s = %s", arg, value); } else if (varend == arg) - scr_LogPrint (LPRINT_NORMAL, "You must specify variable name."); + scr_log_print (LPRINT_NORMAL, "You must specify variable name."); else { @@ -152,11 +152,11 @@ if (!*arg) { // get char cwd[256]; if (getcwd (cwd, 256) == NULL) - scr_LogPrint (LPRINT_NORMAL, "Cannot obtain current working directory: %s.", strerror (errno)); + scr_log_print (LPRINT_NORMAL, "Cannot obtain current working directory: %s.", strerror (errno)); else - scr_LogPrint (LPRINT_NORMAL, "%s", cwd); + scr_log_print (LPRINT_NORMAL, "%s", cwd); } else if (chdir (arg) == -1) // set - scr_LogPrint (LPRINT_NORMAL, "Cannot change current working directory: %s.", strerror (errno)); + scr_log_print (LPRINT_NORMAL, "Cannot change current working directory: %s.", strerror (errno)); } static void env_load (void)