Author: kkaempf Date: Thu Dec 8 15:19:31 2011 New Revision: 67011 URL: http://svn.opensuse.org/viewcvs/yast?rev=67011&view=rev Log: make ycp arg const char * Modified: trunk/openwsman-yast/src/yast_stub_custom.c Modified: trunk/openwsman-yast/src/yast_stub_custom.c URL: http://svn.opensuse.org/viewcvs/yast/trunk/openwsman-yast/src/yast_stub_custom.c?rev=67011&r1=67010&r2=67011&view=diff ============================================================================== --- trunk/openwsman-yast/src/yast_stub_custom.c (original) +++ trunk/openwsman-yast/src/yast_stub_custom.c Thu Dec 8 15:19:31 2011 @@ -181,6 +181,7 @@ debug( "YaST: no method args found for 'eval'" ); goto cleanup; } + list_t *arglist = (list_t *)hnode_get(hn); int arglen = list_count(arglist); lnode_t *argnode = list_first(arglist); @@ -190,6 +191,7 @@ debug( "YaST: argument list is empty for 'eval'" ); goto cleanup; } + methodarglist_t *arraynode = (methodarglist_t *)argnode->list_data; if (!arraynode || strcmp(arraynode->key, "ycp")) { status.fault_code = WSMAN_SCHEMA_VALIDATION_ERROR; @@ -197,6 +199,7 @@ debug( "YaST: missing 'ycp' argument for 'eval'" ); goto cleanup; } + selector_entry *sentry = (selector_entry *)arraynode->data; if (!sentry) { status.fault_code = WSMAN_SCHEMA_VALIDATION_ERROR; @@ -204,8 +207,9 @@ debug( "YaST: 'ycp' argument for 'eval' has no data" ); goto cleanup; } + // get value of "ycp" - char *ycp = sentry->entry.text; + const char *ycp = sentry->entry.text; // create response out_doc = wsman_create_response_envelope( in_doc , NULL ); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org