changeset 32262:f67e85fc1f7a

Fix af_append and af_prepend prototypes, the name should be const.
author reimar
date Sat, 25 Sep 2010 10:49:39 +0000
parents 0dd2b27940b5
children b8cd2b5c4d35
files libaf/af.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libaf/af.c	Thu Sep 23 17:08:10 2010 +0000
+++ b/libaf/af.c	Sat Sep 25 10:49:39 2010 +0000
@@ -179,7 +179,7 @@
 /* Create and insert a new filter of type name before the filter in the
    argument. This function can be called during runtime, the return
    value is the new filter */
-static af_instance_t* af_prepend(af_stream_t* s, af_instance_t* af, char* name)
+static af_instance_t* af_prepend(af_stream_t* s, af_instance_t* af, const char* name)
 {
   // Create the new filter and make sure it is OK
   af_instance_t* new=af_create(s,name);
@@ -203,7 +203,7 @@
 /* Create and insert a new filter of type name after the filter in the
    argument. This function can be called during runtime, the return
    value is the new filter */
-static af_instance_t* af_append(af_stream_t* s, af_instance_t* af, char* name)
+static af_instance_t* af_append(af_stream_t* s, af_instance_t* af, const char* name)
 {
   // Create the new filter and make sure it is OK
   af_instance_t* new=af_create(s,name);