mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-05 04:40:31 +09:00
patches 0001-Save-the-last-error-and-provide-a-function-to-get-it.patch,
0002-Use-const-whereever-it-makes-sense.patch, 0003-Implement-function-to-retrieve-userauth-possabilitie.patch from Andreas Schneider git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@191 7dcaeef0-15fb-0310-b436-a5af3365683c
This commit is contained in:
@@ -39,7 +39,7 @@ STRING *string_new(unsigned int size){
|
||||
return str;
|
||||
}
|
||||
|
||||
void string_fill(STRING *str,void *data,int len){
|
||||
void string_fill(STRING *str, const void *data,int len){
|
||||
memcpy(str->string,data,len);
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@ void string_fill(STRING *str,void *data,int len){
|
||||
* \return the newly allocated string.
|
||||
* \warning The nul byte is not copied nor counted in the ouput string.
|
||||
*/
|
||||
STRING *string_from_char(char *what){
|
||||
STRING *string_from_char(const char *what){
|
||||
STRING *ptr;
|
||||
int len=strlen(what);
|
||||
ptr=malloc(4 + len);
|
||||
|
||||
Reference in New Issue
Block a user