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:
Daniel P. Berrange 2012-02-10 15:03:31 +00:00 committed by Marc-André Lureau
parent 985ec9d6ec
commit fbb6b9984a
2 changed files with 3 additions and 3 deletions

View File

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

View File

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