From patchwork Fri Jul 12 15:22:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Eggers X-Patchwork-Id: 1959935 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=KwrktK6e; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2607:f8b0:4864:20::840; helo=mail-qt1-x840.google.com; envelope-from=swupdate+bncbdk7hq7yrekrbemvyw2amgqezgpc5yq@googlegroups.com; receiver=patchwork.ozlabs.org) Received: from mail-qt1-x840.google.com (mail-qt1-x840.google.com [IPv6:2607:f8b0:4864:20::840]) (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 4WLFkF3Ytsz1xqj for ; Sat, 13 Jul 2024 01:24:05 +1000 (AEST) Received: by mail-qt1-x840.google.com with SMTP id d75a77b69052e-44b181a4edasf52511621cf.1 for ; Fri, 12 Jul 2024 08:24:05 -0700 (PDT) ARC-Seal: i=3; a=rsa-sha256; t=1720797843; cv=pass; d=google.com; s=arc-20160816; b=gIxadsIkSxwv+DRTwp1JI4blLWBm8i7fdLq0JxiEA4NkQDxoF+JmT4heNK7ZkczggH EUDRJu3qabmGp791jJu+qDJMrF5eMw0UGVqJ7mdqQbbU8k+9cvenau/HUHCcbajdkwHq fojBFRY/fsHI1fZGSOwDi0NX9p4c3rqtcZqwEcARMaUrCXICgJCqAr6aBpXO+ZCpKnve G7quLovw7fa51JeuKjllXq0wMfWpxqIKR2zwv32mG6bmTUovNU9RE0Ml9lQSNHNjUsDt 177Z9vqodiKFnu0cbVpW/OhoHx16z+ZnaoibERW9BRAf1LYRwK7JVnycvlHvyv8XAU/r P60Q== 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=mkBjEmGXgI0xp7jh4tlnewJ5Pic5d86c2LoSH5RKjlI=; fh=Ib2878n6U9fJWLR9RFgjhxe/0JnSxxVF056NmvpBX4s=; b=CQrG/a281wFLefJB1AeUYmcp8U7gTqip0r2n+PRaMppxWF3ENHr9V+mxTC+283z0SF soyqfYGnK8XL/9ELiEtTSHkHTo3m2fYl9l63GtLKh+Xg/5sKW8bQlC9/op/HOnBD2R0J ieOhKEwJIFIH6tB2OqGEiZGl+wF/pjQKXEYMdz9hyruHD2Kc2KDJU/TQR0ngn2QvRZt3 GU3j0KPUp+tiCU7DzXGN9ndNJGATwIEpemf0uIHkLCSgOfIOHKYfY4fUYJ2hRNZlWqR9 v7krTiXCks+1LBp9Q58m2uKf71QxV3ouv4vZrt/fxki9IjDN4fpyBABsn0K74bnZDKhQ EBCw==; darn=patchwork.ozlabs.org ARC-Authentication-Results: i=3; gmr-mx.google.com; dkim=pass header.i=@arri.de header.s=selector1 header.b=HmKrri9u; arc=pass (i=1); spf=pass (google.com: domain of ceggers@arri.de designates 2a01:111:f403:260c::623 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=1720797843; x=1721402643; 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=mkBjEmGXgI0xp7jh4tlnewJ5Pic5d86c2LoSH5RKjlI=; b=KwrktK6eVnntugaenJXyamrW1fVkS9nI0MN+DSHbf6zEAVLHlg/iSRVwxYWN8708dg ECYNM0fZSLi22Do7/a/uURKuY7jsh/+a1UKgPsIwJRe+a8Z6KcOoQ9+BIrJbzsGLFKoX LnkqReFhQq5xUmGqQcTrdLNtplPtTmMJM9i85yaU6PLMvWvPcTrKP8fxt0Uzyz8hQy5G Aa4E/RPeI/evaNK5Q5cEroGXT5R3+hmkH8HkY5mcG/yfwzLYJV9yGKFgpqm2se60oZt7 +ExqdAWiNPOm9BdT7R+cw5abBLlserbCBrfz72KRDaLOQMTqUqCL1FBKhjo8zFt2OnDT jhMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720797843; x=1721402643; 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=mkBjEmGXgI0xp7jh4tlnewJ5Pic5d86c2LoSH5RKjlI=; b=VnmlT5Bbk887wqARUpaah2YfkFbNRty2rJVDKgxTrkaKuk7W9ab3fj+QZQS/Drf2Fl /ihmQiVQGC1FbshLnPpUrZK9YH2erzom69OOvmZ3+fdFoRv4z5RpFpIbkVE9eya2wfNk X0Wbxi6AM0VGuD+sdVsORs1meLt+bRpJLwXJKzO5Rx4McEEW4COkzTiwYSJpTQB/C0xS tUFENIxRvjrZiUOnIwzVgoYz3UiZn5i05q2ANCRM4RRUl/5+nKq3DOZNNr6Gf9kadiYo a3iTg7mWzOsbkCuaYCEnk9/b/OLR+FNgAcCzzkG+QsGikTHP+StNeFGP9gnnfDnlWq3V OhlQ== Sender: swupdate@googlegroups.com X-Forwarded-Encrypted: i=3; AJvYcCW9AGzeuDUEzDZF/E3Q3cm8yg3tPHKS+AM2iDOgWQMqjkf9IMrNX3E0M4OpMTgrM3zsDMf8prqWjSNyWJb1Fmc2ckWFK0IsfDvdnVzGkA== X-Gm-Message-State: AOJu0Yw4Za3ImIOK/BDIBQnvsnrcYpfY7YDTAsbWZ57WZg0ZpuL4FNCb p6mE5ZqEqH9SjcA0ZoxDlL57M5gmX8k3SBTCLUAlcPMqMHTxzOtV X-Google-Smtp-Source: AGHT+IFhBxETZPrGyd5CHZa54CpLMy66rDMqJ72qgE9zaSjgsds0OtD71OocD1r1D3cv9pebYkbBSw== X-Received: by 2002:a05:6214:5184:b0:6b5:101c:6473 with SMTP id 6a1803df08f44-6b754b6ac34mr61964216d6.2.1720797842430; Fri, 12 Jul 2024 08:24:02 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 2002:ad4:5993:0:b0:6ad:782a:b4d5 with SMTP id 6a1803df08f44-6b74b426bd8ls38112466d6.1.-pod-prod-00-us; Fri, 12 Jul 2024 08:23:59 -0700 (PDT) X-Received: by 2002:a05:6214:c8b:b0:6b5:2de3:32b0 with SMTP id 6a1803df08f44-6b754b9f927mr51301546d6.7.1720797838806; Fri, 12 Jul 2024 08:23:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1720797838; cv=pass; d=google.com; s=arc-20160816; b=HwRyRAGfACg2GjMnk0GpLDOb5ZYc6PHITRmOr6y2XgMEs37Re/i0yz7L9gIl0Xiw91 IGQ+548n3l7NTbu8XOTjoitADUitCHSk+IcLS9ADr65Xh8ImA8RQwYr2VcZv8cXWa5Za B/P8cCeiQr9q+TIC3z4omuGYMeEgr2LQzKn7xMGY3RFYb8r0pOx2Wmc7hz1n3Bwcufvn +q4ZqtzyBdEgP2zBHIV1kw/HYagmkr5Izzj8mtE+aROo873Uv3taKgwUDOFsWnu0oSHH XB6yUbwxqmmYwOpccIhi0DNyt40Eyu6T0FxuHvawhjgRPtFD7YF1gR18BP8lXGvN1q1R bomg== 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=vgxIwSLwol7LF7kwlp707Z/AbFetMn81q1VY2x641Og=; fh=Zaas7zo9QAZR51NXyZEDKjGEOyAL/jH6m/nrwgSdorI=; b=XSH8e2rFhjfYYcM9+3LQvVC+OdHR1poRwOctaA6iKCM3gZ7JaAaa1yUFVmq4AN+RYd BlcnARfZZBmOwHdYckxu7MafdAwvHKDS8XCBQ8r9tBkuNnZZLUAQOMqC+QAOE/oYo3Hn hpV8TSmm10mVrGeyZULliGUWt41TVAfxszCSoG/vnsvGlNdGtA7RGs2byo0zCuy6mawf 0oeFwVz1sUNQpLbfiBuvys4piyvgoHV9joLBF2EvM1Z6cgZAPpEd1G/GV5U5HccxQ/Ox sKQ1BoR2AqMcdrFsnrfnykndpt99jVTmAQHmpjrjDAISYqH/u1OyfEYeZ9v3wqwAXVGb S6dA==; dara=google.com ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@arri.de header.s=selector1 header.b=HmKrri9u; arc=pass (i=1); spf=pass (google.com: domain of ceggers@arri.de designates 2a01:111:f403:260c::623 as permitted sender) smtp.mailfrom=CEggers@arri.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arri.de Received: from EUR03-VI1-obe.outbound.protection.outlook.com (mail-vi1eur03on20623.outbound.protection.outlook.com. [2a01:111:f403:260c::623]) by gmr-mx.google.com with ESMTPS id 6a1803df08f44-6b61b9f388fsi4744366d6.2.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:260c::623 as permitted sender) client-ip=2a01:111:f403:260c::623; ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Cla/tz9+eQIAi/JVTXxHrBYkGd/YrS2oPLUfXRzIXaqYiNe8aTQa8VMBHOAf8UC7SfiQX4ZFBvjce7CX1H0KSZ1RvfWwVt//bVgS+w+f28v1CDq/1AGfLd1un5BrF199XX9DWOWUn70dPp/ORuQy+XZZt7KWmXDNe8jGn1tNKAaHJIwPwSi0bQhPBkr7OlLcprz3WCF0qqggDv3NwqeGZd5pkemh7kDc18ZisdBSQy+zzj+9ed7V00VkLT00Hza5y9NkwLTc81JE6y33gYXSolMiylSko1I7rYuiGJOv5YufZqBhzNUcsYdrBLo8qTZFIGb18xaHU0DqzVnBUPP8mw== 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=vgxIwSLwol7LF7kwlp707Z/AbFetMn81q1VY2x641Og=; b=KmrMANGbuYDsh8FwvU3mSFrMbflSoZPXW2MmAn+/FGDfrBos1LqJaf7qu/2a8D75V0stLALqSoRUQ2XZFFOjmUeY5XqzNHj7JcJbEExMsBWLxNwh4Z60z1ZuJlcmU1FSjmSMEtVQoajhxWsJSdUr75PhNgM6JU503XOeWP++3oXKl61WAn9HNt0ia9k1tzFusCjUBtqGs8KhySCEq/bCYsE6SyVikwIVyl273TAPIpZKYu7qmodrF0cPORzFvjXUk2S7iy7lujPO1JSju5tjRyLSwWWzbbEMViyzA5YT3bAgCL2e/Xad/UlCHTQJ0Xy3/JnsvJG8oiY7OPRVU2z/yQ== 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 DUZPR01CA0202.eurprd01.prod.exchangelabs.com (2603:10a6:10:4b6::13) by DBBPR07MB7516.eurprd07.prod.outlook.com (2603:10a6:10:1ed::15) 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:55 +0000 Received: from DB5PEPF00014B90.eurprd02.prod.outlook.com (2603:10a6:10:4b6:cafe::8c) by DUZPR01CA0202.outlook.office365.com (2603:10a6:10:4b6::13) 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:55 +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 DB5PEPF00014B90.mail.protection.outlook.com (10.167.8.228) 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:54 +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:54 +0200 From: Christian Eggers To: CC: Christian Eggers Subject: [swupdate] [PATCH v2 03/10] Fix usage of GET_FIELD_BOOL() Date: Fri, 12 Jul 2024 17:22:46 +0200 Message-ID: <20240712152253.3702-4-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: DB5PEPF00014B90:EE_|DBBPR07MB7516:EE_ X-MS-Office365-Filtering-Correlation-Id: d5f1b1a9-fd9b-44a7-2eab-08dca286a481 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|82310400026|1800799024|376014|36860700013; X-Microsoft-Antispam-Message-Info: a4yOlwKU1aao14dKtEXf34bmnNT+1smwnefLU1V53vYxBVDw3i8wOt8RlPEmhcT4RflKILyBhdDiRFRkw9IIweCJatotxhdJAn6vc0K1w9GsqQc7hEIkJSNvFn7wvOWauGvj3woCaIMB8WGMsA9deIYbTV1trpUxTMzXZJiEKLAc8vwnm1s/dRuuRGhQfyjgNXTSBL1J8/w5wbWGPIbpx8HFPeW3JQCE0JeqH+BbjdsipGpcR+VlVy6uVCN2+lfZoHNpWii1er003bJTv9p5wPZJVv99dwYz+OWbXf45PMWuHEkpHmL0Mvu/TnIBgnUf7tHLZQJk+D/dYzZVZ2Ob3DC1dBpMu5fYVF35zhij3zrxLMn+yybzgk0bP6PXQBPkEPOmbsvqtbw6L2CPNBoyzERL14XfuUiY3L0opqVSuEUUe43sCtT6gZZcWNF29lr4Lgmy2YGDKaE+b8zN02JNFnDWJUzW0m/ZRkXsUj7ugfDglhXSPlmJ2W6C7mMLU5MKsEBPD5unBHcnJV2PVZskW9C9tbBVFX23+IhHtmB39MqHTd+VhUxqoYLaCIDF1wJ+Sivzua4rtLSLJZVgRl7qSJ6SUeRWC1S379WNllvVFfJnhqd9QPY30Zs/dsTj5svpoyANmeaCRRiIRcQGW1PfvDhcg1DHd3siAxjy6NTA7Dhm/UoFw47ffky+cymBRJIkRBxHUR8xJfMYZi7xBJMlVg3M1J2MQf/HJYggFKWiLVX/tbUQKR6l+rk+HliC/iKty+f7/f7QZDvOctJ1mUszk2fh7NuaOWuXgR4w9ooHtvsVD9F7Ld9zV9KP1kTU3S2Z5aJr+m5eevAqTnp+Zy3oYn64obmrEGaEw60i1eA9DyChOF5KkYuzGEgDOX6SrgUsWOGd8A/NEWCkvqz42Lw10y2Bk0o5g82BeP74hXprWXsjk9JHTXDuqqRUgqFi1VqSccpXfQXOVAUVP4zJUg+Tgo0NdKVrD8Ur6mS4IuiTWVpw/FucMxMyGnjOZ94YMSPHw+PjEFkN+UItc51UKWi92q4Uh7GEyjhH/Hx6vth2eFdw7AV5NADxIugLS1n2IVi98hFnP3m4MtGxxxoLGJyEKxG8+o0Md9ENV55BrmTHyfv7t/AHNk7u/aAA1s9ygrtzEkpjUMjdjTf0w9Ur/ynmK4Mkb4Clv/soFVh1u7WBsMwP/psTpy7xM3vmOZqkDhlCAV/TZc0AawHkvIymWXia4O/0+LYAGro1QhMbVmEA77RPtgMjSa0oIzSv6U+cBr85lFn2DRoJB4luBfLHDMlvz/hWF+xnfQF3Vu4WhATY76YlIHNhqoLlhl+ZxO/I2CgcKDJAJJ1t2/vfkuZHJdtm0PqJ/gj4skr/hCP2lWEJwf42p+mOP4uXn77rCGDRt4B0j9jh4ClqtiOqBuZbOoizDKUO8yucXyeClaYXq71B80Xk51pVw4HLH/OcwLZPAhJ0 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)(82310400026)(1800799024)(376014)(36860700013);DIR:OUT;SFP:1101; X-OriginatorOrg: arri.de X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jul 2024 15:23:54.8389 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d5f1b1a9-fd9b-44a7-2eab-08dca286a481 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: DB5PEPF00014B90.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR07MB7516 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=HmKrri9u; arc=pass (i=1); spf=pass (google.com: domain of ceggers@arri.de designates 2a01:111:f403:260c::623 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: , GET_FIELD_BOOL(), expects a pointer to a bool value. Synchronize behavior between libconfig and libjson adaptors. Signed-off-by: Christian Eggers --- core/stream_interface.c | 2 +- corelib/parsing_library_libjson.c | 2 +- include/swupdate_image.h | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/stream_interface.c b/core/stream_interface.c index 5f3ad2e3fd93..eecc672ca157 100644 --- a/core/stream_interface.c +++ b/core/stream_interface.c @@ -288,7 +288,7 @@ static int extract_files(int fd, struct swupdate_cfg *software) return -1; } /* Avoid trying to adjust again later */ - part->install_directly = 1; + part->install_directly = true; } } img->fdin = fd; diff --git a/corelib/parsing_library_libjson.c b/corelib/parsing_library_libjson.c index 187e4eadcc16..d454aa79c540 100644 --- a/corelib/parsing_library_libjson.c +++ b/corelib/parsing_library_libjson.c @@ -126,7 +126,7 @@ static void get_value_json(json_object *e, void *dest, field_type_t expected_typ return; switch (type) { case json_type_boolean: - *(unsigned int *)dest = json_object_get_boolean(e); + *(bool *)dest = json_object_get_boolean(e); break; case json_type_int: *(unsigned int *)dest = json_object_get_int(e); diff --git a/include/swupdate_image.h b/include/swupdate_image.h index e214aafc2965..26ace79499ac 100644 --- a/include/swupdate_image.h +++ b/include/swupdate_image.h @@ -32,8 +32,8 @@ typedef enum { struct sw_version { char name[SWUPDATE_GENERAL_STRING_SIZE]; char version[SWUPDATE_GENERAL_STRING_SIZE]; - int install_if_different; - int install_if_higher; + bool install_if_different; + bool install_if_higher; LIST_ENTRY(sw_version) next; }; @@ -57,7 +57,7 @@ struct img_type { bool preserve_attributes; /* whether to preserve attributes in archives */ bool is_encrypted; char ivt_ascii[33]; - int install_directly; + bool install_directly; int is_script; int is_partitioner; struct dict properties;