From patchwork Fri Jul 12 15:22:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Eggers X-Patchwork-Id: 1959934 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20230601 header.b=HmbA7NHf; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2607:f8b0:4864:20::b3b; helo=mail-yb1-xb3b.google.com; envelope-from=swupdate+bncbdk7hq7yrekrbeevyw2amgqedqawzyy@googlegroups.com; receiver=patchwork.ozlabs.org) Received: from mail-yb1-xb3b.google.com (mail-yb1-xb3b.google.com [IPv6:2607:f8b0:4864:20::b3b]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WLFkD33Jlz1xqj for ; Sat, 13 Jul 2024 01:24:04 +1000 (AEST) Received: by mail-yb1-xb3b.google.com with SMTP id 3f1490d57ef6-e03623b24ddsf4073014276.1 for ; Fri, 12 Jul 2024 08:24:04 -0700 (PDT) ARC-Seal: i=3; a=rsa-sha256; t=1720797841; cv=pass; d=google.com; s=arc-20160816; b=indckGdq/meG2gxFwHEQI11paFq74QssLqRmOlHIUv6Su8gC4aoZtPNdz6K3F6JKtK ivjrxvLCdGpZN0RVRDClYxzQgMfmOLxl9AlsLgsv+JtMJLA0nHc+V854COKPk3/HiCl3 AFxcyE/EwhzoeqBZcibmgWq9xZQd+YuRQokZ3K8uzqlmkM3F0xpaD1VyjjWbYcMp/lMt PRAm/qqBXhqaUvXH4RiPfkm0iadk7SVNsr4FEjBK6qPPrEG6O6m4/vDhxOof2+TTSXp+ Er9XTseYMkc13A/Py0w95hICWtV5qgV8gW8HWuCxi0pkQLW9c73GnUDgh5PmEV0pQr+F QAAQ== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=XLsHkJqtnUvKkXFF0tlTLJpWrDm5A/ruwdzcD44Krk4=; fh=TpzOMB/EppOB90yLEHfvCVVm8l8NnrAjUX2Upa618KE=; b=knyJo7s+5VlDU4zzTa5x8kFCmL7Rd/vtD83JmKV3tsxdCysgBxU7ilCpLqjrJ+SKlo ucPKM4/gur+Xicd5VPDX6jyj/2JykLAQtNEcSneXT18iQquu90RZiH8v/dwta6bbMHbn JyVZnzEbscZInLZercO5WtiyMyc+BvmsxCEixGFaOIu0/f/FIMeFEep0Wz5oKAIyB9iG PCbHtd9O7eFctpaIHDKSfHZwy3o5pH7544VqCoNIeMP6bSYS5hY1/7eJt8u1UXry0jjv xyx02ajS/wRLIOX6w0qxDv2yfyH/g0wnaPPw3kTLNsKrK5JJryEkV+Lcu0l89M1rto7G bCIA==; darn=patchwork.ozlabs.org ARC-Authentication-Results: i=3; gmr-mx.google.com; dkim=pass header.i=@arri.de header.s=selector1 header.b=kJVzws67; arc=pass (i=1); spf=pass (google.com: domain of ceggers@arri.de designates 2a01:111:f403:2612::60a as permitted sender) smtp.mailfrom=CEggers@arri.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arri.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1720797841; x=1721402641; darn=patchwork.ozlabs.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:sender:from:to:cc:subject:date:message-id :reply-to; bh=XLsHkJqtnUvKkXFF0tlTLJpWrDm5A/ruwdzcD44Krk4=; b=HmbA7NHf5KSs4hrSNGLHUbwpKn1gesXjkrzaN8Skz/penI+Z4h2rl0exNPZa3cxID/ BP6YjpNf25yqpEfpS+JSxjKzlBHt3Azmvmouo54SOj3q34ibU/Yj9e45n/lEs0mkVltD eBcJZOXQSMkzA9B6OFxNYFaE/X7tXGvIXR8evSeRhEGYiy8tOzJZLMlB6lf3yX5YuPEb hLWtJaEnbIQUme+QStf/Ooh7lZ0R62peyfP7jcc7YdRi6thUS9OaIo9nMD/X0PKqEFF+ WekcYgtEYvgCYlMmup0i2XuALeSk+l6zhoWpzknpCblGLXjWbHA8N2K3ivtg7CJXBFgr j8fQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720797841; x=1721402641; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=XLsHkJqtnUvKkXFF0tlTLJpWrDm5A/ruwdzcD44Krk4=; b=k3Le0sMhJE1BNn0sLDKVKWK15T8qnPu3ClCaOVvxQK7pgKbPj0Md+b/vTgchiLTpuS l8fLx/5/UfW2DoZyP1H/xWElAN4axAvU88eH7Ovj5JdLo+n2woYsiD+2zQEOSp2NW9QI tDMH1jmOrY8vUcumY5p1Bt3q3aOU3iEUrztKRolrD2AmIPsZIMtKdpqMioX/ecjwDASC XABMNpYXGUWI8kwpq2ANHJNaf/usX34Mmt4H1H1TNCBzpLIp2RuYrhCKOsIN7kFVFSZ0 +13k7cN0FD0rXsF1kC7aa+7mpOCyf9nlu19vcyi9C+31RQ2fKuF2feTTBWj2ezKz9wro zjoQ== Sender: swupdate@googlegroups.com X-Forwarded-Encrypted: i=3; AJvYcCVfp7A7HdFPnwHavGe+WAZYxEURYlRdCaqzVYK/yKOmLxQPIR9Cbz4Vev2pBZsKRYd36pjthBiLEYgvyqA2z2XKHG7GB8FldzSdnCmXvg== X-Gm-Message-State: AOJu0Yy+VHsuI2RcThMXeNSVJ8m5E/d5W34En3ftAKtY8goDGzk+QsJn LnyJerhT54F/cko7f6/T5BQTmBhGYqj+fasvlf9TIo1FXmBcX2z3 X-Google-Smtp-Source: AGHT+IEv7CUWpgrF56ReEmNMqouhy9aacynJMqdn7lc0dSmv6y4asqX7fb9NTPu2HSwTn0KuGeVftg== X-Received: by 2002:a5b:a0e:0:b0:dfb:aee:1d3c with SMTP id 3f1490d57ef6-e041b121ee8mr13607852276.46.1720797841158; Fri, 12 Jul 2024 08:24:01 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a05:6902:18d2:b0:df4:e17a:8653 with SMTP id 3f1490d57ef6-e0579035fd5ls3197861276.1.-pod-prod-08-us; Fri, 12 Jul 2024 08:23:59 -0700 (PDT) X-Received: by 2002:a81:6982:0:b0:627:a917:bae7 with SMTP id 00721157ae682-658ef43fb82mr122220967b3.30.1720797839609; Fri, 12 Jul 2024 08:23:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1720797839; cv=pass; d=google.com; s=arc-20160816; b=R/bN+gwjpapz/9ad/DtHogwE775yN0XEMKNIFPk8Q9fRgt+FRnUjaQhg/vICuyRDbB ETiTw7bCiXTM3Vgeswo6832j1Te+a9ngjps/oF/L5X1gydACAHhpG38GUNCqrViZsWIl DteEz7+PdrTGF4OqkURz91IoKo74BK/FpFzPEOmA6u7H7aMFNxQi9oUg/joC6KVZ1+X2 SJhEMpgpQ12bkOJWMubbA1353B6amR55up6jEt/apJFQRCFmiwvgCeYPYPOKR8bwddBg GDFQ1ELnpREVvpvoAgFoCQ/9C3b9IrTpnapNCTH0hUwbS2SCzTnXYMy2GPcNgb9kfnCz ndtg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=gJtEj5vQW3M0lZeCfWamg87ufdCQoDDhJOIMi1bWPGI=; fh=Zaas7zo9QAZR51NXyZEDKjGEOyAL/jH6m/nrwgSdorI=; b=ms1E/w33LPflejSCfvr3jK5w3x/dSv8+1qjD29C4WHmSBqISJ1eIvTyh5FZ1f83ale sFrK7lltNXAzMI92jbvC4186SXhWI7QapXpunDLutAao/E8HvsIyokiAkO75S1aDL57N OZkc7N/QYm4aLJcDY7DHwvWsRIo3yxd7ej6yDXsgor4jk/A2UQREpUTY3FvBYvAvsGAU 50+FeygGK4uYHdRdOX6I30wTiuG4NsBCKzFdehuY5n14yzaGnOLXz1I8QNXtMRpl3wWs DEbwbddKPsndjCvm2ZTyfx1kyci00arNdIoQKQfuByGRG0W4kBb32akYrXVUU912lsgY Hy+A==; dara=google.com ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@arri.de header.s=selector1 header.b=kJVzws67; arc=pass (i=1); spf=pass (google.com: domain of ceggers@arri.de designates 2a01:111:f403:2612::60a as permitted sender) smtp.mailfrom=CEggers@arri.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arri.de Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2060a.outbound.protection.outlook.com. [2a01:111:f403:2612::60a]) by gmr-mx.google.com with ESMTPS id 00721157ae682-658e2049a1esi4554027b3.0.2024.07.12.08.23.58 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Jul 2024 08:23:58 -0700 (PDT) Received-SPF: pass (google.com: domain of ceggers@arri.de designates 2a01:111:f403:2612::60a as permitted sender) client-ip=2a01:111:f403:2612::60a; ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Y59RKRcJB0SnZotEPzC9KQXxetni65cptjPrsqjm8kFzstRNMajMr1GwA6R97SqWv0zyCnDgxsHFqgpDOkvxGkxa+EKUXYc+DbuzkQT2S3Vdftd1Ij6kkKI+2HDu0/U1kqMuePRKRnetIPZY8gJiuNkYBMMQszq+w7eW3MO9c+pE+gmu6IlJ9NgJYIQTh1izuyeyynBTqt91g89TvLlcskh3HQtLibfYVUSTIEjS8jyvzBh6KOlfZEvR8UZdHjEJb6mRQ1cRjsT+gLxbriLAL9obG5mTP0PZY3owMngcIhEtsL6I1iC8l12XvtClENH+GxlH4PIJ3sPQLWJ1fyBWVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=gJtEj5vQW3M0lZeCfWamg87ufdCQoDDhJOIMi1bWPGI=; b=TNt9fEQBhfkx92dck192/evJG99o6uTeNd5f5oRi3HA1mIOPYTUI/g1JNQKccdpSr+7ZV2A0GqYNoN5l72lTJ7ZKZmuRX5EGm79h7O3dFn0qsfkccbYS9359NfPSrmkakTD/oKCLAOfFfdkj/k3ktbzKbFmVP7HmrK0PUQY6DT82X75czvbEDYKDAdBKnT+5cBsvpSGdbRwFF+oJ2UwRbDyOZmDW3YqmtRfeB96t/g1I5ZtVQQmtStD77hbny8szjcBel/E3wHiNezvbRmXYicZYYDsnr7dozN0rIqQ3sFa3hqhZfyS/LETqjxkCB7nCqAQ5O9ZYbB7lr5xzSE3aXg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=fail (sender ip is 217.111.95.7) smtp.rcpttodomain=googlegroups.com smtp.mailfrom=arri.de; dmarc=fail (p=none sp=none pct=100) action=none header.from=arri.de; dkim=none (message not signed); arc=none (0) Received: from DUZPR01CA0005.eurprd01.prod.exchangelabs.com (2603:10a6:10:3c3::9) by PA4PR07MB8741.eurprd07.prod.outlook.com (2603:10a6:102:262::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.8; Fri, 12 Jul 2024 15:23:56 +0000 Received: from DB5PEPF00014B97.eurprd02.prod.outlook.com (2603:10a6:10:3c3:cafe::ee) by DUZPR01CA0005.outlook.office365.com (2603:10a6:10:3c3::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.23 via Frontend Transport; Fri, 12 Jul 2024 15:23:56 +0000 X-MS-Exchange-Authentication-Results: spf=fail (sender IP is 217.111.95.7) smtp.mailfrom=arri.de; dkim=none (message not signed) header.d=none;dmarc=fail action=none header.from=arri.de; Received-SPF: Fail (protection.outlook.com: domain of arri.de does not designate 217.111.95.7 as permitted sender) receiver=protection.outlook.com; client-ip=217.111.95.7; helo=mta.arri.de; Received: from mta.arri.de (217.111.95.7) by DB5PEPF00014B97.mail.protection.outlook.com (10.167.8.235) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.17 via Frontend Transport; Fri, 12 Jul 2024 15:23:56 +0000 Received: from N9W6SW14.arri.de (192.168.54.130) by mta.arri.de (10.10.18.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.34; Fri, 12 Jul 2024 17:23:55 +0200 From: Christian Eggers To: CC: Christian Eggers Subject: [swupdate] [PATCH v2 04/10] Fix usage of GET_FIELD_INT() Date: Fri, 12 Jul 2024 17:22:47 +0200 Message-ID: <20240712152253.3702-5-ceggers@arri.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240712152253.3702-1-ceggers@arri.de> References: <20240712152253.3702-1-ceggers@arri.de> MIME-Version: 1.0 X-Originating-IP: [192.168.54.130] X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB5PEPF00014B97:EE_|PA4PR07MB8741:EE_ X-MS-Office365-Filtering-Correlation-Id: 349da9ca-510b-4bf7-63a3-08dca286a57c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|36860700013|82310400026|1800799024|376014; X-Microsoft-Antispam-Message-Info: 1qqX7vpr9GDo9U9iQ3X7SrdycgxCLtNVU7x4ciV6KZVAHaEWfL7q09SrTiivGcsIRtrTeB6IxBYbf2ZZdyCGGwV/KV7Wvm5WM0Hke3COaT0ldbQcSO/FY8LTjG/XO2RejpfLYUw0b/TIJjjoYZcREgnaNvTxhOXKvfcKJThnSogG/Lf41Me14QnXfV0vIhNXekqMwRAs+vKr87DpGZ/QvPMoALUJG+wK4sDkGV61ysUKp/qlGS7YjeXGE9pANOzeCpJyhiXHBEdAFKdJeRCT6QPvNzzXdOt5xd8XHle49S/KYaATqtwlKerfSVxLalMxQJoZLZffG2fahgAbWaUd6Kdvm09BqEJUYl350ro0k3KR8TkBUGE4wiEJSlW/caO4ObCRryViyr7KTbcYGP8xx3gaTEXVmh8+jGQ08aopURaqTmYZZ2EC4eaybzt8yLBknpIUgind3ZxPPLkWRPT2S9NKs5E1YhCHKrPDmkHWqqXsf7Gi5ACztnA37dYfrRwA0hHsAZk45suu2RP2aO+JeLdLsOkI3AxZcEAf6DgsgyukK5xrsi+mUFj/oofmA5JaVQg2iy1gd9GnUhRLVngUoWuum9Ju6NNDtCLTRc5BvX7cT2Cb75b+BE6SmYqER4/XMcW1OnoREMjYCzjZ66xbclOpNp1TLQ/c7FufdK2YZ/SHFuSTBxYpg/TNPAAtnzPFTGheO+rzctItlKk49X1zRMNg6MtH0Ci9sJBbF1GLDkU2TVaUaJEUfKlUHPrtFhUd020xA+SWx4MIz3R5ufki6oH8HJCAxOL4qkTZemgRpyFDrbd2PZmgvHlZMAredcLmO7tuGKNLBPvDyuPwf4ogaCnf3q0vTiUEAh8R/sEAwYu9dlEsbRkEhMtFMJnEXcQSyJ+mMkB73rOTi3j6xFIf2+OlF+dYYM9d1RLrktyrEehf6jYgCqD3ggNd2ssKMqxWWL7pLu4oQzMdlTy/bb+E5t6/Yp/EOVuMCBTPa6jjogmx8SiULP9TOv/xcQXX6ETcSUYgEKGW9wBkSoPs0pr2yBi1VNZYaBaHVSiJ8P+UjKq7n3Xf09sJSpjVxuQmS/603PgsvbSOZW/D6SPDIKG1CeWi6tHgFlMpfc8Qd1HWFD17q0lJB+dVfFQEgF9CLzwChxlcQ4CbTXc4ji+Ai/ilSzsNpARcO/HIpkxN5rv5MBBKeFyLcYelQPJqcpEUSmZjvvyNXraf/wMrJVKLdcmEqtcLug1I3rzPHx2z4gS3B/mqoG1Ncf1q7mbkzwp6TVhlQZOk17rJkxtLR3xv9o/QotjOVC3E57XCmKLo/UToptXPXJzPVRn5iEvvs+r832DMz5RxqU6+tmtuLFfg6MiFoMYWWM1tIaqK03RTLse6Ta4YwN4HdxV6dehBPcSelyO5Ujvo3tbJ36Maec21mS0OcpMoXqH7B0M2Lc462O69yejY6Zb0yasDs99cgprA+6wl X-Forefront-Antispam-Report: CIP:217.111.95.7;CTRY:DE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mta.arri.de;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(36860700013)(82310400026)(1800799024)(376014);DIR:OUT;SFP:1101; X-OriginatorOrg: arri.de X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jul 2024 15:23:56.4696 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 349da9ca-510b-4bf7-63a3-08dca286a57c X-MS-Exchange-CrossTenant-Id: e6a73a5a-614d-4c51-b3e3-53b660a9433a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=e6a73a5a-614d-4c51-b3e3-53b660a9433a;Ip=[217.111.95.7];Helo=[mta.arri.de] X-MS-Exchange-CrossTenant-AuthSource: DB5PEPF00014B97.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR07MB8741 X-Original-Sender: ceggers@arri.de X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@arri.de header.s=selector1 header.b=kJVzws67; arc=pass (i=1); spf=pass (google.com: domain of ceggers@arri.de designates 2a01:111:f403:2612::60a as permitted sender) smtp.mailfrom=CEggers@arri.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arri.de Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Add explicit pointer casts and sync behavior between libjson and libconfig adaptors. Signed-off-by: Christian Eggers --- corelib/parsing_library_libjson.c | 2 +- corelib/server_utils.c | 2 +- corelib/swupdate_settings.c | 4 ++-- mongoose/mongoose_interface.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/corelib/parsing_library_libjson.c b/corelib/parsing_library_libjson.c index d454aa79c540..fee7bbe3ad7b 100644 --- a/corelib/parsing_library_libjson.c +++ b/corelib/parsing_library_libjson.c @@ -129,7 +129,7 @@ static void get_value_json(json_object *e, void *dest, field_type_t expected_typ *(bool *)dest = json_object_get_boolean(e); break; case json_type_int: - *(unsigned int *)dest = json_object_get_int(e); + *(int *)dest = json_object_get_int(e); break; case json_type_double: *(double *)dest = json_object_get_double(e); diff --git a/corelib/server_utils.c b/corelib/server_utils.c index 33c2d9a07ae2..e38425638a34 100644 --- a/corelib/server_utils.c +++ b/corelib/server_utils.c @@ -22,7 +22,7 @@ int channel_settings(void *elem, void *data) channel_data_t *chan = (channel_data_t *)data; GET_FIELD_INT(LIBCFG_PARSER, elem, "retry", - &chan->retries); + (int *)&chan->retries); GET_FIELD_STRING_RESET(LIBCFG_PARSER, elem, "max-download-speed", tmp); if (strlen(tmp)) { diff --git a/corelib/swupdate_settings.c b/corelib/swupdate_settings.c index 28d89a1436c7..e23c9f296606 100644 --- a/corelib/swupdate_settings.c +++ b/corelib/swupdate_settings.c @@ -95,8 +95,8 @@ static int get_run_as(void *elem, void *data) { struct run_as *pid = (struct run_as *)data; - GET_FIELD_INT(LIBCFG_PARSER, elem, "userid", &pid->userid); - GET_FIELD_INT(LIBCFG_PARSER, elem, "groupid", &pid->groupid); + GET_FIELD_INT(LIBCFG_PARSER, elem, "userid", (int *)&pid->userid); + GET_FIELD_INT(LIBCFG_PARSER, elem, "groupid", (int *)&pid->groupid); return 0; } diff --git a/mongoose/mongoose_interface.c b/mongoose/mongoose_interface.c index 3fbe88e2ca54..8635bbaf4c82 100644 --- a/mongoose/mongoose_interface.c +++ b/mongoose/mongoose_interface.c @@ -770,7 +770,7 @@ static int mongoose_settings(void *elem, void __attribute__ ((__unused__)) *dat } GET_FIELD_BOOL(LIBCFG_PARSER, elem, "run-postupdate", &run_postupdate); - GET_FIELD_INT(LIBCFG_PARSER, elem, "timeout", &watchdog_conn); + GET_FIELD_INT(LIBCFG_PARSER, elem, "timeout", (int *)&watchdog_conn); return 0; }