When u_int oldval was added to struct field, the initialization of
struct field fields[] became incorrect.
Example:
# audioctl play.seek=10
play.seek: 0 -> 0
Expected:
# audioctl play.seek=10
audioctl: `play.seek' is read only
Thank you for your time.
--- audioctl.c.orig Tue Jul 24 11:56:21 2012
+++ audioctl.c Tue Jul 24 11:56:50 2012
@@ -65,7 +65,6 @@
const char *name;
void *valp;
int format;
- u_int oldval;
#define STRING 1
#define INT 2
#define UINT 3
@@ -78,6 +77,7 @@
#define READONLY 1
#define ALIAS 2
#define SET 4
+ u_int oldval;
} fields[] = {
{ "name", &adev.name, STRING, READONLY },
{ "version", &adev.version, STRING, READONLY },