aboutsummaryrefslogtreecommitdiff
path: root/src/imv.c
diff options
context:
space:
mode:
authorHarry Jeffery <harry@exec64.co.uk>2019-02-10 00:49:27 +0000
committerHarry Jeffery <harry@exec64.co.uk>2019-02-10 00:49:27 +0000
commit551464706c848526646a20b5b4172cda69f0e005 (patch)
tree44d39aead773aca821fcb51bd2ce18372ba99d10 /src/imv.c
parenta306cd551640286eb1ad189e87bf7815b5a94de8 (diff)
downloadimv-551464706c848526646a20b5b4172cda69f0e005.tar.gz
Tweak allocation sizeof operator usage
Diffstat (limited to 'src/imv.c')
-rw-r--r--src/imv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/imv.c b/src/imv.c
index 60954fe..34a4e9a 100644
--- a/src/imv.c
+++ b/src/imv.c
@@ -296,7 +296,7 @@ static void source_callback(struct imv_source_message *msg)
struct imv *imv_create(void)
{
- struct imv *imv = malloc(sizeof(struct imv));
+ struct imv *imv = malloc(sizeof *imv);
imv->quit = false;
imv->loading = false;
imv->fullscreen = false;
@@ -444,7 +444,7 @@ void imv_free(struct imv *imv)
void imv_install_backend(struct imv *imv, const struct imv_backend *backend)
{
- struct backend_chain *chain = malloc(sizeof(struct backend_chain));
+ struct backend_chain *chain = malloc(sizeof *chain);
chain->backend = backend;
chain->next = imv->backends;
imv->backends = chain;