Finished const-ifications as suggested by Erik Johansson in

SF Patch tracker [ 1587272 ].


git-svn-id: https://pupnp.svn.sourceforge.net/svnroot/pupnp/trunk@109 119443c7-1b9e-41f8-b6fc-b9c35fce742c
This commit is contained in:
Marcelo Roberto Jimenez
2006-12-23 22:43:32 +00:00
parent 17db87ab96
commit fd19d54144
8 changed files with 36 additions and 30 deletions

View File

@@ -600,13 +600,13 @@ get_device_info( IN http_message_t * request,
service_info *serv_info;
char save_char;
int ret_code = -1; // error by default
char *control_url;
const char *control_url;
char *actionName = NULL;
// null-terminate pathquery of url
control_url = request->uri.pathquery.buff;
save_char = control_url[request->uri.pathquery.size];
control_url[request->uri.pathquery.size] = '\0';
((char *)control_url)[request->uri.pathquery.size] = '\0';
HandleLock( );
@@ -663,7 +663,7 @@ get_device_info( IN http_message_t * request,
ret_code = 0;
error_handler:
control_url[request->uri.pathquery.size] = save_char; // restore
((char *)control_url)[request->uri.pathquery.size] = save_char; // restore
HandleUnlock( );
return ret_code;
}