Commit 42b9a1b3 42b9a1b31ff0ab91f5c861bebbbddf34bbcad50a by Sergey Poznyakoff

(mh_global_profile_get): Changed prototype.

1 parent 55475517
...@@ -236,7 +236,7 @@ message_t mh_file_to_message (char *folder, char *file_name); ...@@ -236,7 +236,7 @@ message_t mh_file_to_message (char *folder, char *file_name);
236 message_t mh_stream_to_message (stream_t stream); 236 message_t mh_stream_to_message (stream_t stream);
237 void mh_install __P((char *name, int automode)); 237 void mh_install __P((char *name, int automode));
238 238
239 char *mh_global_profile_get __P((char *name, char *defval)); 239 char *mh_global_profile_get __P((char *name, const char *defval));
240 int mh_global_profile_set __P((const char *name, const char *value)); 240 int mh_global_profile_set __P((const char *name, const char *value));
241 char *mh_global_context_get __P((const char *name, const char *defval)); 241 char *mh_global_context_get __P((const char *name, const char *defval));
242 int mh_global_context_set __P((const char *name, const char *value)); 242 int mh_global_context_set __P((const char *name, const char *value));
......
...@@ -31,7 +31,7 @@ int mh_auto_install = 1; ...@@ -31,7 +31,7 @@ int mh_auto_install = 1;
31 /* Global profile */ 31 /* Global profile */
32 32
33 char * 33 char *
34 mh_global_profile_get (char *name, char *defval) 34 mh_global_profile_get (char *name, const char *defval)
35 { 35 {
36 return mh_context_get_value (profile, name, defval); 36 return mh_context_get_value (profile, name, defval);
37 } 37 }
...@@ -86,7 +86,7 @@ _mh_init_global_context () ...@@ -86,7 +86,7 @@ _mh_init_global_context ()
86 86
87 if (context) 87 if (context)
88 return; 88 return;
89 mu_path_folder_dir = mh_get_dir (); 89 mu_set_folder_directory (mh_get_dir ());
90 p = getenv ("CONTEXT"); 90 p = getenv ("CONTEXT");
91 if (!p) 91 if (!p)
92 p = MH_CONTEXT_FILE; 92 p = MH_CONTEXT_FILE;
......