use the G_N_ELEMENTS macro where appropriate,

removing a bunch of unuseful static variables.
Changed some g_malloc to g_new while I was on it.
This commit is contained in:
David Odin
2001-12-06 02:32:57 +00:00
parent aa201cade4
commit 5cebb04786
7 changed files with 16 additions and 31 deletions

View File

@ -109,7 +109,7 @@ siod_init (gint local_register_scripts)
register_scripts = local_register_scripts;
/* init the interpreter */
process_cla (sizeof (siod_argv) / sizeof (char *), siod_argv, 1);
process_cla (G_N_ELEMENTS (siod_argv), siod_argv, 1);
init_storage ();
init_subrs ();
init_trace ();