From: Mike McCormack <mj.mccormack@samsung.com>

Subject: [E-devel] [PATCH - embryo] Use const on input string

Embryo_Program *embryo_program_load(char *file);

looks like it's missing a const.  This patch adds it.



SVN revision: 56205
This commit is contained in:
Mike McCormack 2011-01-17 10:48:56 +00:00 committed by Carsten Haitzler
parent 0ca1df4bfe
commit ea869cf57e
2 changed files with 2 additions and 2 deletions

View File

@ -120,7 +120,7 @@ extern "C" {
EAPI Embryo_Program *embryo_program_new(void *data, int size);
EAPI Embryo_Program *embryo_program_const_new(void *data, int size);
EAPI Embryo_Program *embryo_program_load(char *file);
EAPI Embryo_Program *embryo_program_load(const char *file);
EAPI void embryo_program_free(Embryo_Program *ep);
EAPI void embryo_program_native_call_add(Embryo_Program *ep, const char *name, Embryo_Cell (*func) (Embryo_Program *ep, Embryo_Cell *params));
EAPI void embryo_program_vm_reset(Embryo_Program *ep);

View File

@ -306,7 +306,7 @@ embryo_program_const_new(void *data, int size)
* @ingroup Embryo_Program_Creation_Group
*/
EAPI Embryo_Program *
embryo_program_load(char *file)
embryo_program_load(const char *file)
{
Embryo_Program *ep;
Embryo_Header hdr;