# HG changeset patch # User reimar # Date 1285411779 0 # Node ID f67e85fc1f7ac708ac1455004bacd18b5da19f4f # Parent 0dd2b27940b57be06c399c4206223c9acd886d31 Fix af_append and af_prepend prototypes, the name should be const. diff -r 0dd2b27940b5 -r f67e85fc1f7a libaf/af.c --- 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);