From: Martin Ling Date: Thu, 17 Jul 2014 17:39:17 +0000 (+0100) Subject: Change prototype of sr_trigger_new to take const char *. X-Git-Tag: libsigrok-0.4.0~1254 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=00ebcbf48a775e56b6e73a39e69af390db547865;p=libsigrok.git Change prototype of sr_trigger_new to take const char *. --- diff --git a/include/libsigrok/proto.h b/include/libsigrok/proto.h index dd4782b5..f11efeda 100644 --- a/include/libsigrok/proto.h +++ b/include/libsigrok/proto.h @@ -137,7 +137,7 @@ SR_API int sr_output_free(struct sr_output *o); /*--- trigger.c -------------------------------------------------------------*/ -SR_API struct sr_trigger *sr_trigger_new(char *name); +SR_API struct sr_trigger *sr_trigger_new(const char *name); SR_API void sr_trigger_free(struct sr_trigger *trig); SR_API struct sr_trigger_stage *sr_trigger_stage_add(struct sr_trigger *trig); SR_API int sr_trigger_match_add(struct sr_trigger_stage *stage, diff --git a/trigger.c b/trigger.c index d3886e6f..0783bb2a 100644 --- a/trigger.c +++ b/trigger.c @@ -24,7 +24,7 @@ #define LOG_PREFIX "trigger" /* * @endcond */ -SR_API struct sr_trigger *sr_trigger_new(char *name) +SR_API struct sr_trigger *sr_trigger_new(const char *name) { struct sr_trigger *trig;