Embryo_Program *embryo_program_load(char *file);
looks like it's missing a const. This patch adds it.
thanks,
Mike
>From 07e559fe0e9dbed9da55e7154e4b863ffc345008 Mon Sep 17 00:00:00 2001
From: Mike McCormack <[email protected]>
Date: Mon, 17 Jan 2011 18:19:22 +0900
Subject: [PATCH] Use const on input string
---
trunk/embryo/src/lib/Embryo.h | 2 +-
trunk/embryo/src/lib/embryo_amx.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/trunk/embryo/src/lib/Embryo.h b/trunk/embryo/src/lib/Embryo.h
index e7c1a72..1bfb1ec 100644
--- a/trunk/embryo/src/lib/Embryo.h
+++ b/trunk/embryo/src/lib/Embryo.h
@@ -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);
diff --git a/trunk/embryo/src/lib/embryo_amx.c b/trunk/embryo/src/lib/embryo_amx.c
index ab96ab7..ea71091 100644
--- a/trunk/embryo/src/lib/embryo_amx.c
+++ b/trunk/embryo/src/lib/embryo_amx.c
@@ -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;
--
1.7.0.4
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel