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:
Aris Adamantiadis
2008-11-24 18:05:55 +00:00
parent f880011d72
commit f7700f2bc2
12 changed files with 254 additions and 134 deletions

View File

@@ -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);