}
static void
-_font_load_request_free(void *msg, void *data)
+_font_load_request_free(void *msg, void *data __UNUSED__)
{
free(msg);
}
static Eina_Bool
_glyphs_request_check(Glyphs_Request *req)
{
- int i;
+ unsigned int i;
Font_Entry *fe = req->fe;
req->answer = malloc(sizeof(*req->answer) * req->nglyphs);
_glyphs_group_create(Glyphs_Request *req)
{
Eina_List *groups = NULL;
- int i;
+ unsigned int i;
for (i = 0; i < req->nanswer; i++)
{
static void
_glyphs_load_request_prepare(Glyphs_Request *req)
{
- int i, max;
+ unsigned int i, max;
req->nrender = 0;
Font_Entry *fe = req->fe;
}
static void *
-_glyphs_load_request_build(void *data, int *size)
+_glyphs_load_request_build(void *data, int *size __UNUSED__)
{
Glyphs_Request *req = data;
Slave_Msg_Font_Glyphs_Load *msg = NULL;
}
static void
-_glyphs_load_request_response(Client *client, void *data, void *resp, unsigned int rid)
+_glyphs_load_request_response(Client *client __UNUSED__, void *data, void *resp, unsigned int rid)
{
Glyphs_Request *req = data;
Slave_Msg_Font_Glyphs_Loaded *msg = resp;
Font_Entry *fe = req->fe;
Font_Cache *fc = NULL;
- int i = 0;
+ unsigned int i = 0;
if (fe->last_cache && fe->last_cache->shm == msg->caches[0]->shm)
fc = fe->last_cache;
while (i < msg->ncaches)
{
- int j;
+ unsigned int j;
Slave_Msg_Font_Cache *c = msg->caches[i++];
if (!fc)
}
static void
-_glyphs_load_request_failed(Client *client, void *data, Error_Type error, unsigned int rid)
+_glyphs_load_request_failed(Client *client __UNUSED__, void *data __UNUSED__, Error_Type error __UNUSED__, unsigned int rid __UNUSED__)
{
}
}
static void
-_cserve2_cache_image_stats_get(Msg_Stats *msg)
+_cserve2_cache_image_stats_get(Msg_Stats *msg __UNUSED__)
{
}
}
int
-cserve2_cache_font_unload(Client *client, const char *source, unsigned int sourcelen, const char *name, unsigned int namelen, unsigned int rend_flags, unsigned int size, unsigned int dpi, unsigned int rid)
+cserve2_cache_font_unload(Client *client, const char *source, unsigned int sourcelen, const char *name, unsigned int namelen, unsigned int rend_flags, unsigned int size, unsigned int dpi, unsigned int rid __UNUSED__)
{
Font_Entry *fe;
char *fullname;
{
{ CSERVE2_REQ_FONT_LOAD, SLAVE_FONT, FONT_LOAD },
{ CSERVE2_REQ_FONT_GLYPHS_LOAD, SLAVE_FONT, FONT_GLYPHS_LOAD },
- { CSERVE2_REQ_LAST, 0 }
+ { CSERVE2_REQ_LAST, 0, 0 }
};
static Slave *_create_image_slave(void *data);
static void
_cserve2_requests_process(void)
{
- int rtype, j;
+ unsigned int rtype, j;
for (rtype = 0; rtype < CSERVE2_REQ_LAST; rtype++)
{
_server_send(const void *buf, int size, Op_Callback cb, void *data)
{
const Msg_Base *msg;
- if (_server_safe_send(socketfd, &size, sizeof(size)) == -1)
+ if (!_server_safe_send(socketfd, &size, sizeof(size)))
{
ERR("Couldn't send message size to server.");
return EINA_FALSE;
}
- if (_server_safe_send(socketfd, buf, size) == -1)
+ if (!_server_safe_send(socketfd, buf, size))
{
ERR("Couldn't send message body to server.");
return EINA_FALSE;
const Msg_Font_Glyphs_Loaded *resp = msg;
Glyph_Request_Data *grd = data;
Font_Entry *fe = grd->fe;
- int ncaches = 0;
+ unsigned int ncaches = 0;
const char *buf;
if (resp->base.type == CSERVE2_ERROR)