diff options
Diffstat (limited to 'frontends/monkey')
-rw-r--r-- | frontends/monkey/401login.c | 2 | ||||
-rw-r--r-- | frontends/monkey/bitmap.c | 2 | ||||
-rw-r--r-- | frontends/monkey/browser.c | 2 | ||||
-rw-r--r-- | frontends/monkey/dispatch.c | 2 | ||||
-rw-r--r-- | frontends/monkey/download.c | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/frontends/monkey/401login.c b/frontends/monkey/401login.c index 1629425f6..9c3b21f1f 100644 --- a/frontends/monkey/401login.c +++ b/frontends/monkey/401login.c @@ -56,7 +56,7 @@ gui_401login_open(struct nsurl *url, { struct monkey401 *m401_ctx; - m401_ctx = calloc(sizeof(*m401_ctx), 1); + m401_ctx = calloc(1, sizeof(*m401_ctx)); if (m401_ctx == NULL) { return NSERROR_NOMEM; } diff --git a/frontends/monkey/bitmap.c b/frontends/monkey/bitmap.c index 900dbca72..cc13c8b8f 100644 --- a/frontends/monkey/bitmap.c +++ b/frontends/monkey/bitmap.c @@ -36,7 +36,7 @@ struct bitmap { static void *bitmap_create(int width, int height, enum gui_bitmap_flags flags) { - struct bitmap *ret = calloc(sizeof(*ret), 1); + struct bitmap *ret = calloc(1, sizeof(*ret)); if (ret == NULL) return NULL; diff --git a/frontends/monkey/browser.c b/frontends/monkey/browser.c index f78ea6efd..5cd501189 100644 --- a/frontends/monkey/browser.c +++ b/frontends/monkey/browser.c @@ -75,7 +75,7 @@ gui_window_create(struct browser_window *bw, struct gui_window *existing, gui_window_create_flags flags) { - struct gui_window *ret = calloc(sizeof(*ret), 1); + struct gui_window *ret = calloc(1, sizeof(*ret)); if (ret == NULL) return NULL; diff --git a/frontends/monkey/dispatch.c b/frontends/monkey/dispatch.c index 08bd352d5..09d7e7331 100644 --- a/frontends/monkey/dispatch.c +++ b/frontends/monkey/dispatch.c @@ -38,7 +38,7 @@ static monkey_cmdhandler_t *handler_ring = NULL; nserror monkey_register_handler(const char *cmd, handle_command_fn fn) { - monkey_cmdhandler_t *ret = calloc(sizeof(*ret), 1); + monkey_cmdhandler_t *ret = calloc(1, sizeof(*ret)); if (ret == NULL) { NSLOG(netsurf, INFO, "Unable to allocate handler"); return NSERROR_NOMEM; diff --git a/frontends/monkey/download.c b/frontends/monkey/download.c index b9ca1746f..1f7743941 100644 --- a/frontends/monkey/download.c +++ b/frontends/monkey/download.c @@ -45,7 +45,7 @@ static struct gui_download_window * gui_download_window_create(download_context *ctx, struct gui_window *parent) { - struct gui_download_window *ret = calloc(sizeof(*ret), 1); + struct gui_download_window *ret = calloc(1, sizeof(*ret)); if (ret == NULL) return NULL; ret->g = parent; |