From patchwork Fri Jul 12 15:22:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Eggers X-Patchwork-Id: 1959932 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=IIrwJLoc; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2607:f8b0:4864:20::f3e; helo=mail-qv1-xf3e.google.com; envelope-from=swupdate+bncbdk7hq7yrekrb3muyw2amgqeywip5kq@googlegroups.com; receiver=patchwork.ozlabs.org) Received: from mail-qv1-xf3e.google.com (mail-qv1-xf3e.google.com [IPv6:2607:f8b0:4864:20::f3e]) (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 4WLFjY0gYbz1xqj for ; Sat, 13 Jul 2024 01:23:28 +1000 (AEST) Received: by mail-qv1-xf3e.google.com with SMTP id 6a1803df08f44-6b5dfeae8casf28074086d6.2 for ; Fri, 12 Jul 2024 08:23:28 -0700 (PDT) ARC-Seal: i=3; a=rsa-sha256; t=1720797806; cv=pass; d=google.com; s=arc-20160816; b=dufIV1mWnBeqsvwjW5Kw6rWOQJRh/ToIxi3YoKuV0RWbgP7f2JNle2wAgdftCZFNMk a5oP82sE+qqQrXv4d4Z1+ivwsD+oL4FVAFGmOx7d84zyzN0MOgqDH15LiDE9sQqelM3T oK9iNcjzLazxz4pVwg8TyKabx40UMZjzuxstXVd5PxHrN9Xe8A+df1zL0SRanNCwsel2 8wpgv2mCmwnpJs4XKN5MN1xHbL5v7jOuIl99PFNqem6D4Ms8aj5KsMs04n+79ZR7Q78E Zq+SxepstFfqOb7Vzlg87JpHpzREGZerPmidV5GdGCWZsqil4NzHhaoD9LG3wnaksJOU Tl+A== 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=QmnhI1Uzk6A0ybaYqk7X2A43Ezz4lGH9/SadHbvxxXo=; fh=6bC4B56ulP0D2XZPsmmHA9eLqQT3s3eZyhDyRr4qgBw=; b=OvxvtSy0SddLGuI8eOj2V+3zuUqijNFOxdvA+VyQNFCHf+lMAn4ohFu5/qjNWRzUXY DtcRMzFwjiWK+4Yv7uhcBe31B+sXnpl5YT43nE/17jjbxh/fm0eg8GAg6DhFtRrIHpKd d5kZaWbwZXB2VCtaj3x2juXhW6jHmBrAI4kcXT4bWj3ZZ4IaDgyERBrrFi86dlVm8P0W Xodb9Rkw+bL5gG19q7b4UGx+j/JggdPfpkujj+qakbAxIVL7Z8hisr4vVOt7lJTxUzZG 5bsLm4RTum7E9Fq6jbu+WvsRs5ac2H3bIUFhWDdtSFSbZ9PtAQeahlAsectMrG/TCa8L J2bA==; darn=patchwork.ozlabs.org ARC-Authentication-Results: i=3; gmr-mx.google.com; dkim=pass header.i=@arri.de header.s=selector1 header.b=WSHV1RAv; arc=pass (i=1); spf=pass (google.com: domain of ceggers@arri.de designates 2a01:111:f403:2613::600 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=1720797806; x=1721402606; 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=QmnhI1Uzk6A0ybaYqk7X2A43Ezz4lGH9/SadHbvxxXo=; b=IIrwJLocGxeSB2X+WHsbDUJURtNbc7UfDLK/fmoJj2SCbWG4T5v4KQpqkZJOTk5fG9 0XsIWisrmXVIpN8XyHtUTPHRnW8OIzd1WKk6PJ7ftcgiJ5ro9PIaytVqPaSZuNF2BkOC lQAgSRIfsmstrkEp6nIqwYSswV9XfoUDGqIUAa2nGxhOwKlxF2eTfStO9V1MQ6SsVczI qol0EsuOEK0PNOrTYAhHhnqUAYQI81HX5tGHiVheQEYQRvdEonOxAqxWnwcebp3IYLiJ mqgXZy7y02a7Cqpwg7/p4xClnNfqxx1XU1eq1WGlSSETEGLGok0tFv8/8aynvykj3wQX uEuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720797806; x=1721402606; 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=QmnhI1Uzk6A0ybaYqk7X2A43Ezz4lGH9/SadHbvxxXo=; b=aVvqtyMlh3gzk0szimkh+Un0BIGh5T1ehvqxGcmhWfYgKQzR8MzsxD69aOuFz9Q+wO ptNCf1D+2usWkUMp2uIcz/Vf1luOASMaxsL8enOWFhkQ7bORCIRtLF9/SZwDgV5jn3Kx 9uRfo9XyWcG7Gab1mLF6+gZkHh2I93Ov/Qm5rblQU/8Z5YlgGCC5ARhoByCHLZkw3Agz J9qJjvP8RWp2RO+cP564rwtsz1UspZK+QDKvV+RlDZGhwIejKMrgt4Qw/OIe/YjZ+lqq hEebS02bpD4DeDqYCzkgDYWOHYMeHy+kY2XQeLExOR1Ii+fO5DWJ7dtBXmKWveiHloRq +4eQ== Sender: swupdate@googlegroups.com X-Forwarded-Encrypted: i=3; AJvYcCU8w6ND0e9MfpnK56xqO8VwTP4p8Va+b86eWVg/Pw59xS58d55vQOjT5YXepYq0DK+RdcZ2bRHSrDTsI/a/a9uDdRoImkpjHgjc6klcnQ== X-Gm-Message-State: AOJu0Yy1P7qeGMh6CJE9kzNFbz+kucR6iTJCW005wOt3W/GcA21lhllY Ph1XNIx9tF+BO8/tjqby1JboDnnuO5FvdmZGkOIu5kc/XGvp2Edx X-Google-Smtp-Source: AGHT+IHFX7TkURFm1KVHfN1WeAfdn/abVEJYj43ChGzludO/UrzmNouOmXamWyG/hrQ5P3ke8eqaaA== X-Received: by 2002:a05:6214:1c83:b0:6b0:6a57:c982 with SMTP id 6a1803df08f44-6b61bcff6edmr140715406d6.28.1720797806259; Fri, 12 Jul 2024 08:23:26 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a05:6214:1911:b0:6b0:78b3:9c4b with SMTP id 6a1803df08f44-6b74b325245ls29844076d6.0.-pod-prod-01-us; Fri, 12 Jul 2024 08:23:25 -0700 (PDT) X-Received: by 2002:a05:6122:16a1:b0:4ef:6454:cac1 with SMTP id 71dfb90a1353d-4f33f339e0bmr13583875e0c.15.1720797804545; Fri, 12 Jul 2024 08:23:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1720797804; cv=pass; d=google.com; s=arc-20160816; b=pywCy18dnMG3jAecOrNRP6h8kmoUOXxxpJLZc21n5cnoNCHBpmJ/4rIoVtIznULo39 xJ1+8xa1gUNqXdoESDRz9X45N8JReqbXAfa5YU3/HSt0tWgca7ihHvfB740pxjn6mSqq TVg+33ThSf7lrJnO6blrzteBLuBi996aGOjo/tdDSXoUrL2E+vKcmcDKz2qWmU/8TKDy c8FkYaTrvLkmD1e9XaiidsUMkYdwfqcFXkmzS5dNTG9lNDFvDDaCFAklZZANjHLlsBTu J22B1JYCH38sX1Y8yhzgz9w10j4CrthpiMVaTfFTdX7ZHE5W6dCIF6LL7EYSC61RKH16 Bu9w== 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=VMaeGD6Q5TkEwavN5DFy8NeVFjwz/ANkbd3ZMa5/bhA=; fh=Zaas7zo9QAZR51NXyZEDKjGEOyAL/jH6m/nrwgSdorI=; b=vkZ0NivQ/6/B8vx2g7Lk7i8ksllblnLGBtShFk3oNPGDIrNA6sT5fv5r/mp1UVieaJ nKz+EnvmSivpvszRaBTFU4SAM46uRxr0Y2q9kgrBG9n9MBF6TytFI6D61Fo1/A9/0Pno CuHJFJJjfzIOHEhaxlYbBW4TzuMlFa1ILDl2p7EM512JWQwztCas3iENbDKGXPu+cUTA rUQcu1gzmF5gslSvBKdGrFNm+MrKY7H4kFXF7uhVGhQkymngA3dXk0ZaWr764qQsQR+E Rc2R8myP21CIXqwv5E4Fzy9ushRJi3G2DCjOukyxW2wueq0Pat1nl5OtodpNJrJpc1Oo Pl3A==; dara=google.com ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@arri.de header.s=selector1 header.b=WSHV1RAv; arc=pass (i=1); spf=pass (google.com: domain of ceggers@arri.de designates 2a01:111:f403:2613::600 as permitted sender) smtp.mailfrom=CEggers@arri.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arri.de Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on20600.outbound.protection.outlook.com. [2a01:111:f403:2613::600]) by gmr-mx.google.com with ESMTPS id 71dfb90a1353d-4f33dbb884fsi280870e0c.4.2024.07.12.08.23.23 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Jul 2024 08:23:23 -0700 (PDT) Received-SPF: pass (google.com: domain of ceggers@arri.de designates 2a01:111:f403:2613::600 as permitted sender) client-ip=2a01:111:f403:2613::600; ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Punb8b88MgeC5KqQx8etdRy85R8dFdZmnsEX0syC2moHZDfLTiSZRQQ9JehuFBEY/BZ0kBjGe46I8H9NdBimglEOGFFSH5my/VXFVvVPqHoWjAG6Y90C9juGHmrFZa/H+pV14GCPUUHgU2mW3XZydj4p4RIMaL8S9OBe1VDqP61n871M6xJ97j4OgJ6BfugNNC/IugPRSJHtOp2MgKkFX1N6bbpvFjIo8y/gsq7TONiDxttXzbeNTBRYfx7dE7RSuXAK5tKBGYLHmWktCaHhBch1WKV8rdokPmUV63ERDH82DWEUQvGRTJI16o7IzhqxTrZkmRSSMw6aAxjSJ2au6w== 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=VMaeGD6Q5TkEwavN5DFy8NeVFjwz/ANkbd3ZMa5/bhA=; b=Q3Mbybexzqpnf1YXLfpYBgw0QtZmVbyKOwg/xwDRzFcTPvd4aOFeTmeIO0UUwd5MPCXdztH/p/aRwKKTCSTCkwM5BECv2f8R+X0ZZRzbUkJPlSDMZHdh6IXENPi8EDo1XGuUVEqunv6M5ONO4E+Jh7qaO368CjKismLCMlBAviS5XwR6qg71HZ6Mk57R2dh7h5pjmqHqMB99EhGV0P+RJw4oGPBBceaUvEuxvvBUQiqCaw82Eb5R6k95ik6GGJst5G9sR5SVmzmZck5aTfeI3s3HJDJoUQtr5USiJr7kfvvuCXSeA11Zy1lXDRp4coIJ0PhXC7WGhef0tgiy/gGrqg== 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 DB7PR02CA0035.eurprd02.prod.outlook.com (2603:10a6:10:52::48) by AM0PR07MB6369.eurprd07.prod.outlook.com (2603:10a6:20b:152::14) 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:21 +0000 Received: from DB5PEPF00014B92.eurprd02.prod.outlook.com (2603:10a6:10:52:cafe::81) by DB7PR02CA0035.outlook.office365.com (2603:10a6:10:52::48) 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:21 +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 DB5PEPF00014B92.mail.protection.outlook.com (10.167.8.230) 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:21 +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:20 +0200 From: Christian Eggers To: CC: Christian Eggers Subject: [swupdate] [PATCH v2 01/10] parser: field_type_t::TYPE_STRING: remove Date: Fri, 12 Jul 2024 17:22:44 +0200 Message-ID: <20240712152253.3702-2-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: DB5PEPF00014B92:EE_|AM0PR07MB6369:EE_ X-MS-Office365-Filtering-Correlation-Id: d8d5ddd1-3b95-450f-ac27-08dca286906d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|36860700013|1800799024|376014|82310400026; X-Microsoft-Antispam-Message-Info: LJESXGgDOg3OVOZ6ld5lLzo6ENw2zeHYAA+Zui27fPe6HzGLlpW1LhCshDmz/2i3/WX3zvWds2VJjotOQD4cU+3KfsNOCPWJ7Cxnt9r0lASZJo90b1JUZwIxZj661LJbyOQ03RBbO6mzOeWMNxgHG9+9QaUIaHJ/icxH5QwgxofjtsfSeY+JoYvOxRfYzLA3+GB/v8uFl1I+zLZXS6I1TesSQ06HC+Qbhsk/wMUOZdIbH2FxRHfT7aH74DZ6TRASRwLV/iGNqJVTaGkIdC9nxCnYuLu2tSxQSj1J8eYWmSSvjRiLnhraU4E6csdBY7UitXxc82RRYKS9q+Mh/OFw1NmLkRaYKfXlVAgMSVjJroBBhIp7fh9PktaqHbJPXCF8lgbcwOFTK8mdqnTV0WaUTbC6uRrO2+lYJGeFTz/c9qmnS+kTmoaHVtqsb2bffPTIuURa0ZT1iOS+HrzwtCDS9QcAvr0bKgz5116PvbtiIKrxvcd9iwUfwQqn7jp//QdiI+42ztxFXs33DVVp7i5E6sak/xYN6RVG19ORdoSxVdwmCN7TjuVfud1VFYO2GyVIkUJ4zL0okijs+T9gSAjhtIVcKfxQDCuTGISJcvNoSbzGUCDtLjK/IisaECYhxYrjJQE4u0WeCFL9LALaoSJMvQiODc2nmZJwm2RihmYW0oVxmy/tQwxWerAKP6ggZSIIkCjv54CDCLpVtIhvY8umRxBrnnRDhCTC78utdx+MhZJ9iCdQMt+Q3fqWH5cePSiKH7iSVCdGJXxUGYNj0YEGOwXbjxgq8CQTl6ANLPylmPOvBDuzd4EAfVuJQl/gyzybJIXtE9Vdo1NMF5QMsxFOGqeDOW0Djh9jB+m53aNvw7XACMgqdLeKTnXMHjy2o5IP4gHjQ/SFvCYTn2HNS7dpWKag9DIbPxVMeX6qDui1eZN0jj0ZW3UTtkjGNSz0Dd+bGOpw5Q5SIaBM/F3qPeMUQqWOMs/KQZkDEYMrnvkCWFpWu8j88qCA4Whlo6CYjruhM83X5SVhzU3eas/hwMsk8ssX+uDaNuAlJ1NuxZdbJ01ZsWXsQ7sq9/BYp0g3hVuMAo46kPFx+X89DftEwziGBfeOK7etGRIAoO3+oA5i0vMHbKjklG65fo6MS+6BvRF2Whn+tnfem1HxVXekecX36LYmKHd0FHq7xThH6Ho4/OlUFDWBnJGZmphrGPhsdd9Qq6KSu2KWrYWs3Ugd3wTyBWcR8U+00WAG1XlChi7SpjnJJBQLvIoX+Yk7NXdU7I3TvFJNTB6VOGKWQL2jn9eqhybRenC7l7vhbsCftf7TBjhZMA9DJUUhEZW9+6oOwYT4hS5dUKNiRfeSbX4AOJFV2hghOldn0/ETQxk+hnPaHyFxZAsLDXI307nC1NWbD6gvswJbMWGGkcNmmIjetq4jNFj69xZKaooCHn3XU6xN+QU8DH0nI/ktRxZizOko72pM 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)(1800799024)(376014)(82310400026);DIR:OUT;SFP:1101; X-OriginatorOrg: arri.de X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jul 2024 15:23:21.1566 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d8d5ddd1-3b95-450f-ac27-08dca286906d 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: DB5PEPF00014B92.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR07MB6369 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=WSHV1RAv; arc=pass (i=1); spf=pass (google.com: domain of ceggers@arri.de designates 2a01:111:f403:2613::600 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: , This isn't used anywhere (GET_FIELD_STRING() uses a separate method for retrieving strings). Get rid of dangerous strcpy() call in json parser. Signed-off-by: Christian Eggers Acked-by: Stefano Babic --- corelib/parsing_library_libconfig.c | 5 ----- corelib/parsing_library_libjson.c | 5 ----- include/parselib.h | 1 - 3 files changed, 11 deletions(-) diff --git a/corelib/parsing_library_libconfig.c b/corelib/parsing_library_libconfig.c index ddb79f6fb152..a3535e9ec0e4 100644 --- a/corelib/parsing_library_libconfig.c +++ b/corelib/parsing_library_libconfig.c @@ -27,8 +27,6 @@ static unsigned int map_field_type(field_type_t type) return CONFIG_TYPE_INT; case TYPE_INT64: return CONFIG_TYPE_INT64; - case TYPE_STRING: - return CONFIG_TYPE_STRING; case TYPE_BOOL: return CONFIG_TYPE_BOOL; case TYPE_FLOAT: @@ -51,9 +49,6 @@ static void get_value_libconfig(const config_setting_t *e, void *dest, field_typ case CONFIG_TYPE_INT64: *(long long *)dest = config_setting_get_int64(e); break; - case CONFIG_TYPE_STRING: - dest = (void *)config_setting_get_string(e); - break; case CONFIG_TYPE_BOOL: *(bool *)dest = config_setting_get_bool(e); break; diff --git a/corelib/parsing_library_libjson.c b/corelib/parsing_library_libjson.c index 4728d200fc8e..86646676d419 100644 --- a/corelib/parsing_library_libjson.c +++ b/corelib/parsing_library_libjson.c @@ -28,8 +28,6 @@ static json_type map_field_type(field_type_t type) case TYPE_INT: case TYPE_INT64: return json_type_int; - case TYPE_STRING: - return json_type_string; case TYPE_BOOL: return json_type_boolean; case TYPE_FLOAT: @@ -133,9 +131,6 @@ static void get_value_json(json_object *e, void *dest, field_type_t expected_typ case json_type_int: *(unsigned int *)dest = json_object_get_int(e); break; - case json_type_string: - strcpy(dest, json_object_get_string(e)); - break; case json_type_double: *(double *)dest = json_object_get_double(e); break; diff --git a/include/parselib.h b/include/parselib.h index 99b6519fa480..b0142ff26840 100644 --- a/include/parselib.h +++ b/include/parselib.h @@ -27,7 +27,6 @@ typedef enum { typedef enum { TYPE_INT, TYPE_INT64, - TYPE_STRING, TYPE_BOOL, TYPE_FLOAT } field_type_t;