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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user