From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 6086A2B45B for ; Mon, 15 Apr 2019 17:14:54 -0400 (EDT) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0Z6tQ-OsXgzN for ; Mon, 15 Apr 2019 17:14:54 -0400 (EDT) Received: from mail-lf1-f68.google.com (mail-lf1-f68.google.com [209.85.167.68]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id 0A00729E0D for ; Mon, 15 Apr 2019 17:14:53 -0400 (EDT) Received: by mail-lf1-f68.google.com with SMTP id v1so4908171lfg.5 for ; Mon, 15 Apr 2019 14:14:53 -0700 (PDT) From: Cyrill Gorcunov Subject: [tarantool-patches] [PATCH] fiber: Unify sizeof operator Date: Tue, 16 Apr 2019 00:14:50 +0300 Message-Id: <20190415211450.20728-1-gorcunov@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: tarantool-patches-bounce@freelists.org Errors-to: tarantool-patches-bounce@freelists.org Reply-To: tarantool-patches@freelists.org List-Help: List-Unsubscribe: List-software: Ecartis version 1.0.0 List-Id: tarantool-patches List-Subscribe: List-Owner: List-post: List-Archive: To: tml Cc: Cyrill Gorcunov We use sizeof as a function in most of the overall code, fix this nit. --- src/lib/core/fiber.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/core/fiber.c b/src/lib/core/fiber.c index 283a53d58..ce90f930c 100644 --- a/src/lib/core/fiber.c +++ b/src/lib/core/fiber.c @@ -1363,7 +1363,7 @@ cord_costart(struct cord *cord, const char *name, fiber_func f, void *arg) void cord_set_name(const char *name) { - snprintf(cord()->name, sizeof cord()->name, "%s", name); + snprintf(cord()->name, sizeof(cord()->name), "%s", name); /* Main thread's name will replace process title in ps, skip it */ if (cord_is_main()) return; -- 2.20.1