mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-04 12:20:42 +09:00
The string_len function should return unsigned int.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@209 7dcaeef0-15fb-0310-b436-a5af3365683c
This commit is contained in:
@@ -185,7 +185,7 @@ const char *ssh_copyright(void);
|
||||
/* makestring returns a newly allocated string from a char * ptr */
|
||||
STRING *string_from_char(const char *what);
|
||||
/* it returns the string len in host byte orders. str->size is big endian warning ! */
|
||||
int string_len(STRING *str);
|
||||
u32 string_len(STRING *str);
|
||||
STRING *string_new(unsigned int size);
|
||||
/* string_fill copies the data in the string. it does NOT check for boundary so allocate enough place with string_new */
|
||||
void string_fill(STRING *str, const void *data,int len);
|
||||
|
||||
@@ -63,7 +63,7 @@ STRING *string_from_char(const char *what){
|
||||
* \param str the input SSH string
|
||||
* \return size of the content of str
|
||||
*/
|
||||
int string_len(STRING *str){
|
||||
u32 string_len(STRING *str){
|
||||
return ntohl(str->size);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user