X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fvalerie%2Fvalerie.c;h=6fd6cd0a8cb3711479514912ccbc56ab258f281b;hb=2c72452b8db5ff34a4ec9cf460ca949b5adcd6f2;hp=f6a79d8c0302588c0bf76323f9b8f6a3fe2021eb;hpb=f4d4669b66a9f23be85527f65dec19a566db561c;p=melted diff --git a/src/valerie/valerie.c b/src/valerie/valerie.c index f6a79d8..6fd6cd0 100644 --- a/src/valerie/valerie.c +++ b/src/valerie/valerie.c @@ -117,7 +117,7 @@ static valerie_error_code valerie_get_error_code( valerie this, valerie_response /** Execute a command. */ -valerie_error_code valerie_execute( valerie this, size_t size, char *format, ... ) +valerie_error_code valerie_execute( valerie this, size_t size, const char *format, ... ) { valerie_error_code error = valerie_server_unavailable; char *command = malloc( size ); @@ -534,7 +534,7 @@ valerie_error_code valerie_unit_clear_in_out( valerie this, int unit ) /** Set a unit configuration property. */ -valerie_error_code valerie_unit_set( valerie this, int unit, char *name, char *value ) +valerie_error_code valerie_unit_set( valerie this, int unit, const char *name, const char *value ) { return valerie_execute( this, 1024, "USET U%d %s=%s", unit, name, value ); }