mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-common
synced 2026-02-05 06:11:02 +00:00
Add missing includes & make some functions static
A number of functions were used without prior declaration. In some cases this was due to missing include files. In other cases the functions should have just been static. Ideally this would allow -Wmissing-declarations to be enabled, but the files generated by spice_codegen.py will still trip up on this.
This commit is contained in:
parent
bd12a6bd2f
commit
2adc40973c
@ -392,7 +392,7 @@ SpiceMarshaller *spice_marshaller_get_ptr_submarshaller(SpiceMarshaller *m, int
|
||||
return m2;
|
||||
}
|
||||
|
||||
uint8_t *lookup_ref(MarshallerRef *ref)
|
||||
static uint8_t *lookup_ref(MarshallerRef *ref)
|
||||
{
|
||||
MarshallerItem *item;
|
||||
|
||||
|
||||
@ -263,7 +263,7 @@ static int verify_hostname(X509* cert, const char *hostname)
|
||||
return cn_match;
|
||||
}
|
||||
|
||||
X509_NAME* subject_to_x509_name(const char *subject, int *nentries)
|
||||
static X509_NAME* subject_to_x509_name(const char *subject, int *nentries)
|
||||
{
|
||||
X509_NAME* in_subject;
|
||||
const char *p;
|
||||
@ -352,7 +352,7 @@ fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int verify_subject(X509* cert, SpiceOpenSSLVerify* verify)
|
||||
static int verify_subject(X509* cert, SpiceOpenSSLVerify* verify)
|
||||
{
|
||||
X509_NAME *cert_subject = NULL;
|
||||
int ret;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user