|
@@ -59,7 +59,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
|
59
|
59
|
* @ret value String value
|
60
|
60
|
* @ret rc Return status code
|
61
|
61
|
*/
|
62
|
|
-int parse_string ( const char *text, const char **value ) {
|
|
62
|
+int parse_string ( char *text, char **value ) {
|
63
|
63
|
|
64
|
64
|
/* Sanity check */
|
65
|
65
|
assert ( text != NULL );
|
|
@@ -77,7 +77,7 @@ int parse_string ( const char *text, const char **value ) {
|
77
|
77
|
* @ret value Integer value
|
78
|
78
|
* @ret rc Return status code
|
79
|
79
|
*/
|
80
|
|
-int parse_integer ( const char *text, unsigned int *value ) {
|
|
80
|
+int parse_integer ( char *text, unsigned int *value ) {
|
81
|
81
|
char *endp;
|
82
|
82
|
|
83
|
83
|
/* Sanity check */
|
|
@@ -100,7 +100,7 @@ int parse_integer ( const char *text, unsigned int *value ) {
|
100
|
100
|
* @ret netdev Network device
|
101
|
101
|
* @ret rc Return status code
|
102
|
102
|
*/
|
103
|
|
-int parse_netdev ( const char *text, struct net_device **netdev ) {
|
|
103
|
+int parse_netdev ( char *text, struct net_device **netdev ) {
|
104
|
104
|
|
105
|
105
|
/* Sanity check */
|
106
|
106
|
assert ( text != NULL );
|
|
@@ -122,7 +122,7 @@ int parse_netdev ( const char *text, struct net_device **netdev ) {
|
122
|
122
|
* @ret menu Menu
|
123
|
123
|
* @ret rc Return status code
|
124
|
124
|
*/
|
125
|
|
-int parse_menu ( const char *text, struct menu **menu ) {
|
|
125
|
+int parse_menu ( char *text, struct menu **menu ) {
|
126
|
126
|
|
127
|
127
|
/* Find menu */
|
128
|
128
|
*menu = find_menu ( text );
|
|
@@ -145,7 +145,7 @@ int parse_menu ( const char *text, struct menu **menu ) {
|
145
|
145
|
* @ret flag Flag to set
|
146
|
146
|
* @ret rc Return status code
|
147
|
147
|
*/
|
148
|
|
-int parse_flag ( const char *text __unused, int *flag ) {
|
|
148
|
+int parse_flag ( char *text __unused, int *flag ) {
|
149
|
149
|
|
150
|
150
|
/* Set flag */
|
151
|
151
|
*flag = 1;
|
|
@@ -160,7 +160,7 @@ int parse_flag ( const char *text __unused, int *flag ) {
|
160
|
160
|
* @ret key Key
|
161
|
161
|
* @ret rc Return status code
|
162
|
162
|
*/
|
163
|
|
-int parse_key ( const char *text, unsigned int *key ) {
|
|
163
|
+int parse_key ( char *text, unsigned int *key ) {
|
164
|
164
|
|
165
|
165
|
/* Interpret single characters as being a literal key character */
|
166
|
166
|
if ( text[0] && ! text[1] ) {
|
|
@@ -198,7 +198,7 @@ int reparse_options ( int argc, char **argv, struct command_descriptor *cmd,
|
198
|
198
|
char shortopts[ cmd->num_options * 3 /* possible "::" */ + 1 /* "h" */
|
199
|
199
|
+ 1 /* NUL */ ];
|
200
|
200
|
unsigned int shortopt_idx = 0;
|
201
|
|
- int ( * parse ) ( const char *text, void *value );
|
|
201
|
+ int ( * parse ) ( char *text, void *value );
|
202
|
202
|
void *value;
|
203
|
203
|
unsigned int i;
|
204
|
204
|
unsigned int j;
|