Browse Source

Fix sym func type

Serj Kalichev 11 years ago
parent
commit
d422ac77e9
2 changed files with 2 additions and 2 deletions
  1. 1 1
      clish/shell.h
  2. 1 1
      clish/shell/shell_plugin.c

+ 1 - 1
clish/shell.h

@@ -306,7 +306,7 @@ int clish_shell_link_plugins(clish_shell_t *instance);
 clish_sym_t *clish_shell_find_sym(clish_shell_t *instance,
 	const char *name, int type);
 clish_sym_t *clish_shell_add_sym(clish_shell_t *instance,
-	clish_plugin_fn_t *func, const char *name, int type);
+	void *func, const char *name, int type);
 clish_sym_t *clish_shell_add_unresolved_sym(clish_shell_t *instance,
 	const char *name, int type);
 

+ 1 - 1
clish/shell/shell_plugin.c

@@ -119,7 +119,7 @@ clish_sym_t *clish_shell_find_sym(clish_shell_t *this, const char *name, int typ
 /*----------------------------------------------------------------------- */
 /* Add symbol to the table of unresolved symbols */
 clish_sym_t *clish_shell_add_sym(clish_shell_t *this,
-	clish_plugin_fn_t *func, const char *name, int type)
+	void *func, const char *name, int type)
 {
 	clish_sym_t *sym = NULL;