summaryrefslogtreecommitdiffstats
path: root/src/hci/commands/fcmgmt_cmd.c
diff options
context:
space:
mode:
authorMichael Brown2013-07-22 17:13:25 +0200
committerMichael Brown2013-07-22 17:16:11 +0200
commitb87020a0908669446796b83d57eaa2c093419621 (patch)
tree9c63e3ae5d0b5251811367d61b537516c96f7c2a /src/hci/commands/fcmgmt_cmd.c
parent[settings] Remove now-unused store_named_setting() (diff)
downloadipxe-b87020a0908669446796b83d57eaa2c093419621.tar.gz
ipxe-b87020a0908669446796b83d57eaa2c093419621.tar.xz
ipxe-b87020a0908669446796b83d57eaa2c093419621.zip
[parseopt] Allow parsed option to be modified
Parsing a setting name requires the ability to modify the text being parsed. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/hci/commands/fcmgmt_cmd.c')
-rw-r--r--src/hci/commands/fcmgmt_cmd.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/hci/commands/fcmgmt_cmd.c b/src/hci/commands/fcmgmt_cmd.c
index b7e38040c..99f76113e 100644
--- a/src/hci/commands/fcmgmt_cmd.c
+++ b/src/hci/commands/fcmgmt_cmd.c
@@ -43,7 +43,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
* @ret port Fibre Channel port
* @ret rc Return status code
*/
-static int parse_fc_port ( const char *text, struct fc_port **port ) {
+static int parse_fc_port ( char *text, struct fc_port **port ) {
/* Sanity check */
assert ( text != NULL );
@@ -65,7 +65,7 @@ static int parse_fc_port ( const char *text, struct fc_port **port ) {
* @ret port_id Fibre Channel port ID
* @ret rc Return status code
*/
-static int parse_fc_port_id ( const char *text, struct fc_port_id *port_id ) {
+static int parse_fc_port_id ( char *text, struct fc_port_id *port_id ) {
int rc;
/* Sanity check */
@@ -87,8 +87,7 @@ static int parse_fc_port_id ( const char *text, struct fc_port_id *port_id ) {
* @ret handler Fibre Channel ELS handler
* @ret rc Return status code
*/
-static int parse_fc_els_handler ( const char *text,
- struct fc_els_handler **handler ) {
+static int parse_fc_els_handler ( char *text, struct fc_els_handler **handler ){
for_each_table_entry ( (*handler), FC_ELS_HANDLERS ) {
if ( strcasecmp ( (*handler)->name, text ) == 0 )