1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-12-12 15:41:16 +03:00

make ssh_buffer_pack_va() static

Signed-off-by: Sahana Prasad <sahana@redhat.com>
Reviewed-by:   Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
Sahana Prasad
2024-06-26 11:51:18 +02:00
parent 7812e71b8f
commit 5f0e08912e
2 changed files with 5 additions and 8 deletions

View File

@@ -42,10 +42,6 @@ int ssh_buffer_validate_length(struct ssh_buffer_struct *buffer, size_t len);
void *ssh_buffer_allocate(struct ssh_buffer_struct *buffer, uint32_t len); void *ssh_buffer_allocate(struct ssh_buffer_struct *buffer, uint32_t len);
int ssh_buffer_allocate_size(struct ssh_buffer_struct *buffer, uint32_t len); int ssh_buffer_allocate_size(struct ssh_buffer_struct *buffer, uint32_t len);
int ssh_buffer_pack_va(struct ssh_buffer_struct *buffer,
const char *format,
size_t argc,
va_list ap);
int _ssh_buffer_pack(struct ssh_buffer_struct *buffer, int _ssh_buffer_pack(struct ssh_buffer_struct *buffer,
const char *format, const char *format,
size_t argc, size_t argc,

View File

@@ -919,10 +919,11 @@ static int ssh_buffer_pack_allocate_va(struct ssh_buffer_struct *buffer,
* SSH_ERROR on error * SSH_ERROR on error
* @see ssh_buffer_add_format() for format list values. * @see ssh_buffer_add_format() for format list values.
*/ */
int ssh_buffer_pack_va(struct ssh_buffer_struct *buffer, static int
const char *format, ssh_buffer_pack_va(struct ssh_buffer_struct *buffer,
size_t argc, const char *format,
va_list ap) size_t argc,
va_list ap)
{ {
int rc = SSH_ERROR; int rc = SSH_ERROR;
const char *p; const char *p;