On Mon, 17 Jan 2011 02:48:56 -0800
"Enlightenment SVN" <no-re...@enlightenment.org> wrote:

> Log:
> From: Mike McCormack <mj.mccorm...@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.
>   
>   
> 
> Author:       raster
> Date:         2011-01-17 02:48:56 -0800 (Mon, 17 Jan 2011)
> New Revision: 56205
> Trac:         http://trac.enlightenment.org/e/changeset/56205
> 
> Modified:
>   trunk/embryo/src/lib/Embryo.h trunk/embryo/src/lib/embryo_amx.c 
> 
> Modified: trunk/embryo/src/lib/Embryo.h
> ===================================================================
> --- trunk/embryo/src/lib/Embryo.h     2011-01-17 10:47:12 UTC (rev 56204)
> +++ trunk/embryo/src/lib/Embryo.h     2011-01-17 10:48:56 UTC (rev 56205)
> @@ -120,7 +120,7 @@
>  
>     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);
> 
> Modified: trunk/embryo/src/lib/embryo_amx.c
> ===================================================================
> --- trunk/embryo/src/lib/embryo_amx.c 2011-01-17 10:47:12 UTC (rev
> 56204) +++ trunk/embryo/src/lib/embryo_amx.c  2011-01-17 10:48:56 UTC
> (rev 56205) @@ -306,7 +306,7 @@
>   * @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;
> 
> 
when you commit a patch from the ml, please also reply to the person who
submitted it saying that the patch has been committed. this saves time for
other people who may try to be helpful and commit the patch again, not knowing
that it has already been committed :)

-- 
Mike Blumenkrantz
Zentific: NULL pointer dereferences now 50% off!

------------------------------------------------------------------------------
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
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to