diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2021-06-01 22:32:50 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2021-06-01 22:32:50 (GMT) |
commit | 9eab0a0903303d3c93872e7e4b6b1cb774b69b03 (patch) | |
tree | ae8594cae830118ca3a92ee60242490e58c14a9e /src/analysis/db/server.c | |
parent | 1865cce4d51b9c7a6fb718f4e2c034a57365ad1b (diff) |
Improve the code quality by renaming the type for packed buffers.
Diffstat (limited to 'src/analysis/db/server.c')
-rw-r--r-- | src/analysis/db/server.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/analysis/db/server.c b/src/analysis/db/server.c index ad7929f..f324c74 100644 --- a/src/analysis/db/server.c +++ b/src/analysis/db/server.c @@ -141,10 +141,10 @@ static int g_hub_server_verify(int, X509_STORE_CTX *); static void *g_hub_server_listener(GHubServer *); /* Assure l'accueil des nouveaux clients administrateurs. */ -static GServerBackend *g_hub_server_handle_admin(GHubServer *, packed_buffer *, const char *, DBError *, bool *); +static GServerBackend *g_hub_server_handle_admin(GHubServer *, packed_buffer_t *, const char *, DBError *, bool *); /* Assure l'accueil des nouveaux clients analystes. */ -static GServerBackend *g_hub_server_handle_analyst(GHubServer *, packed_buffer *, const char *, DBError *, bool *); +static GServerBackend *g_hub_server_handle_analyst(GHubServer *, packed_buffer_t *, const char *, DBError *, bool *); /* Enregistre dans une liste interne un support de suivi. */ static void g_hub_server_register_backend(GHubServer *, GServerBackend *); @@ -752,13 +752,13 @@ static void *g_hub_server_listener(GHubServer *server) const char *ip; /* Statut de la conversion */ char *peer_name; /* Désignation du correspondant*/ DBError error; /* Validation de la connexion */ - packed_buffer in_pbuf; /* Tampon de réception */ + packed_buffer_t in_pbuf; /* Tampon de réception */ bool status; /* Bilan d'une opération */ uint32_t cmd; /* Commande initiale lue */ uint32_t version; /* Version du client lue */ uint32_t role; /* Rôle visé par le client */ bool new; /* Besoin d'ajout à une liste */ - packed_buffer out_pbuf; /* Tampon d'émission */ + packed_buffer_t out_pbuf; /* Tampon d'émission */ fds.fd = server->fd; fds.events = POLLIN | POLLPRI; @@ -1021,7 +1021,7 @@ static void *g_hub_server_listener(GHubServer *server) * * ******************************************************************************/ -static GServerBackend *g_hub_server_handle_admin(GHubServer *server, packed_buffer *in_pbuf, const char *peer_name, DBError *error, bool *new) +static GServerBackend *g_hub_server_handle_admin(GHubServer *server, packed_buffer_t *in_pbuf, const char *peer_name, DBError *error, bool *new) { GCdbController *result; /* Support de suivi à retourner*/ char *basedir; /* Répertoire de stockage */ @@ -1070,7 +1070,7 @@ static GServerBackend *g_hub_server_handle_admin(GHubServer *server, packed_buff * * ******************************************************************************/ -static GServerBackend *g_hub_server_handle_analyst(GHubServer *server, packed_buffer *in_pbuf, const char *peer_name, DBError *error, bool *new) +static GServerBackend *g_hub_server_handle_analyst(GHubServer *server, packed_buffer_t *in_pbuf, const char *peer_name, DBError *error, bool *new) { GCdbArchive *result; /* Support de suivi à retourner*/ rle_string hash; /* Empreinte du binaire visé */ |