From patchwork Sat Jun 15 19:11:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Glembotzki X-Patchwork-Id: 1948207 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=RTiuHIMQ; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=c7ffGdAl; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::23d; helo=mail-lj1-x23d.google.com; envelope-from=swupdate+bncbdy5juxlviebb6gsw6zqmgqezj6niwi@googlegroups.com; receiver=patchwork.ozlabs.org) Received: from mail-lj1-x23d.google.com (mail-lj1-x23d.google.com [IPv6:2a00:1450:4864:20::23d]) (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 4W1mFV65RBz20Pb for ; Sun, 16 Jun 2024 05:20:30 +1000 (AEST) Received: by mail-lj1-x23d.google.com with SMTP id 38308e7fff4ca-2eae96cecaesf23079491fa.2 for ; Sat, 15 Jun 2024 12:20:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718479227; cv=pass; d=google.com; s=arc-20160816; b=NV6x/NOqxJ1L0Hv7m/uZmOIKk1lDoWbuaTl3o5KGzyxIDvUGXnrj2SFkoYPVrkTsrQ 5C8C/XDfeJbSNg1BPJK8VNA4c45xX6DzqBNAzghvrjOyORQCIf+PwDCQjE/0e6mp7X5Z OXmS9zQun0mG42TCytUhmdj0Bj5kBQjxebnoWLcR+ubTr8G8OmgF2Mz8tnxZR4k1tvXV E1xAPTimcY0kED9v8qRhTlPbqSg+DKQFr/fMBpPt+EjRHQNiFpK155ytCwUwHbXWZePb JuVEDEEfp0vpUOV+C9FOtMZgb6mWhYXnVuvlZyLD+ZYla6xJUIH2uY3uZyb5wYvG2zxv 5o3A== ARC-Message-Signature: i=2; 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 :dkim-signature; bh=V2iei7lpjkzWZGt28WXkmTRCjZnI37pOyAfezDx3C+U=; fh=qmdIzz/HG626NjAeGVkxtadgTHnKMC2lb7CoBD8UDOs=; b=YDt+FrIK4D5TIkO2l4NJ6jPTIb7fv6+53u1AOr0Uz0rDD1BOhjLeGk13xa7uHQdguk G12qWKhN2esaTtO2TnnggL6p0zqTxHOcM9MFFZMgubeha5BFoyWCwqBHcxOpR6mPSemj WvupUYOeFMmvk2bfhkH6lzmy4RjQToMEmne+cqO83mFuaG3JYltinpMrEgxTfZf3N9W8 dyPWYHMmbvuWchMRAiOkHI/3u1nOvM9Rn9C1ixMu8c/h8AKPSmCrXOtSw8itbwMlR3Ad P2zvfqJ1ClHT9NbW4Ty1PTwMPg60heWzeaLuSPanp76avXWeY4NlE8PB1tR0GrZqYOOX nEuQ==; darn=patchwork.ozlabs.org ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Y2ZEdeul; spf=pass (google.com: domain of m.glembo@gmail.com designates 2a00:1450:4864:20::535 as permitted sender) smtp.mailfrom=m.glembo@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1718479227; x=1719084027; 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=V2iei7lpjkzWZGt28WXkmTRCjZnI37pOyAfezDx3C+U=; b=RTiuHIMQX0WZx1BSA0dUjLnytdHHIw3K/kASNUMxfjIgyj77E6LFbsIN6LS14esBcE p2Jpcg7Rc9eF776iW6bzxvDuozoF8ZMJ10NP+OetntqRWLBrgtyydPkVpjHQJVRrAImM DDu1RgVmXFmpnADP7o7Phxk4iN1JdO+IbQCRgCeQITnac9XJVaxwfrmK5cUK+dN68tuV feV/88DAvI73crfcZ2iz5PBAnYczUDC7K4Kx44mxS7Fc5jNu72+TGyaEpmCDc7j3fGT8 R45UhKs+iecjCmaAYfZQr/3KABHQk7GuTQFLmA/PqnVh6YLpmP+QNBRxI04sMlKmo1bv fX3w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718479227; x=1719084027; 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:from:to:cc:subject:date:message-id:reply-to; bh=V2iei7lpjkzWZGt28WXkmTRCjZnI37pOyAfezDx3C+U=; b=c7ffGdAlzyblMIedxVwCRyvEPYXr9Wd59wa4IwaAmlT6+CFpH9JUONW/uRbMWdNmii LYXoPbeMvWu/IKuLidz7N2Rvayxt1R26WUbIVWSNdbEL6BzBy2/I4t9MzoepchRQBCY8 y1z24BnePftFs8ybEmJlG7awRCjf0fRMcQLaJTBWwcQWu1hZzQIr0JRfM3/ChtIGSBui 25xTJAVDXJMZGzel2m1hPNnITYzBSV97xF+dAzbX/38py+zINyr1aPYVMPtr1jMvuFCM EbXt17ephk/fshDn5/65cZ8wq8JScFxq06gZyfDMyBnu7K46jr3iKLAUbFrc14AQmdq+ d0gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718479227; x=1719084027; 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=V2iei7lpjkzWZGt28WXkmTRCjZnI37pOyAfezDx3C+U=; b=Cn0AUVmpVFsZ/PXRoDvygOQsSYCQCbVh9T03WkBR2xptrCJ3OFR1S07IOlP/rLnAN+ G119M0x0eSKNYZ5MfWOAaKU4SrmR/HzpNenJlpIThabxsSfJZRtdGKNTw+OYvtNIdYme Gh8/F5RvrE+8t4NgBJ38Ia77C32qo0XuwzBZW3jSjWy+6MXsihkf3C9KUjynPleDTWO4 OoEYlzPsSrwSQMlFhSflAI1aGw1h2GCk6Ug5Xh2mSNoxAFQ0IIj7FY8azGAwL0d0L4N9 Mi8fOObLOKHzkckYcrXrUBmphJ+PBZxBwUmx7O2kI4bmhm7/npkSTY86X4XGiavE0cn3 pt3Q== Sender: swupdate@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCVlN8yVXZ9Y+aemfXhUNOAElbvzfRymi7fTG6bsYK/GqAK/EwtLlBUQ+tilYdj8pgbq9AgRfzhBnVD+fWLYl5cPvmyAFwoOSQL+rlwbQg== X-Gm-Message-State: AOJu0YzkfAgC3MBcH/wfLJpdUMJ3UUkwCBEVaRYeTtSM3Ze3TQZNFZzI 7zbOk3G499rn8i74aIWZp0fXXd4LQ9t/ZJ/qrC7+0ShSm6XqKxPz X-Google-Smtp-Source: AGHT+IHHBL1W2TLrEXREhV8o5W7YVESn6KViqCw5pV8LkOz0n72DMUkeDMRiO74DCIGAlClEwWj4aQ== X-Received: by 2002:a2e:8250:0:b0:2eb:ed3a:9c65 with SMTP id 38308e7fff4ca-2ec0e46e7aamr33375331fa.15.1718479225652; Sat, 15 Jun 2024 12:20:25 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a05:651c:1063:b0:2ec:1d51:6fb9 with SMTP id 38308e7fff4ca-2ec1d517022ls3580551fa.0.-pod-prod-02-eu; Sat, 15 Jun 2024 12:20:23 -0700 (PDT) X-Received: by 2002:a05:6512:31c4:b0:51e:11d5:bca5 with SMTP id 2adb3069b0e04-52ca6e909a0mr3697803e87.54.1718479222756; Sat, 15 Jun 2024 12:20:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1718479222; cv=none; d=google.com; s=arc-20160816; b=ICWhoI1MLyPBSimNhNLx2HN3EoYvU1ccaorRr99o7U2aZf3itxva4HMgLGaNRUdh1z sy2570ledVjEclP53ec6myw/Bn1+nRVAOEvgET33c7dDpZsbRrogzv5Hk626cJG8sqwj O2jOJ2BzRcuN12vz5IFtKj/5LIEkQ9GazaOu9TPT6GHBAoBNR8iGftkOzECRz91H2F2G T6qp2LtcvwiC2xLVW+Ulw+oY8uV6Kgn51izGriQ0eXXYiFyuclLkf/1odXfKweQJHVkp Y8lQtcWd0HbptzoY90J8E20LcgnFXsnEz8z7UsCR0ZfwwjEWeXrQSRlN8bobAXiAzUUa dKiA== ARC-Message-Signature: i=1; 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=Rqi1aBWtKfLSLrWKKQbjtgFAhBl2m/7jzRTbFigsgTY=; fh=zydHuzCQWrku2OPQyZfraJZFcOpEXLQ/YBcu3QNiBd0=; b=vYge9UphnqR55jmi+wu2sP2rUnT9I62rcHzda1RV75+Xyn814sokW4duUwg/EC5P1O vMU6S83XCZXecCXJQA+ndCSvDhkRmBIQF5w7C0dLpr7GtBxNRy2zBiykgdhLlIG+p7bR 6iDZEZ8/0Kf9jFPpg+4lpEVRclBfVzR06lJzCzgSmqizcciS5NDQqwKWZHxgIZTU99Dz J+F3DM5yvXB/HhBkRAZyCr6VtJvuoT9oh16IXQDMj4XgWXKLUyGYurNA8VnSvOcIAKG3 gQ94StRaNoycPT0jiGrglJ8+N2ZufcljpVtTplJmYHDaH+tz/jJyGRRCWtiOC6orkzte 1abQ==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Y2ZEdeul; spf=pass (google.com: domain of m.glembo@gmail.com designates 2a00:1450:4864:20::535 as permitted sender) smtp.mailfrom=m.glembo@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com. [2a00:1450:4864:20::535]) by gmr-mx.google.com with ESMTPS id 2adb3069b0e04-52ca282f5bdsi107646e87.6.2024.06.15.12.20.22 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 15 Jun 2024 12:20:22 -0700 (PDT) Received-SPF: pass (google.com: domain of m.glembo@gmail.com designates 2a00:1450:4864:20::535 as permitted sender) client-ip=2a00:1450:4864:20::535; Received: by mail-ed1-x535.google.com with SMTP id 4fb4d7f45d1cf-57c73a3b3d7so3638172a12.1 for ; Sat, 15 Jun 2024 12:20:22 -0700 (PDT) X-Received: by 2002:a17:906:2c02:b0:a6f:24fe:f2a7 with SMTP id a640c23a62f3a-a6f60cf1dcbmr393138366b.10.1718479221618; Sat, 15 Jun 2024 12:20:21 -0700 (PDT) Received: from PC-2635.irisgmbh.local ([2a02:8108:96c0:76fc::80bb]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6f56db61e0sm327283766b.49.2024.06.15.12.20.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Jun 2024 12:20:20 -0700 (PDT) From: Michael Glembotzki To: swupdate@googlegroups.com Cc: Michael Glembotzki Subject: [swupdate] [PATCH 10/21] mongoose: Replace deprecated mg_vcasecmp with mg_strcasecmp Date: Sat, 15 Jun 2024 21:11:23 +0200 Message-ID: <20240615191941.40301-11-Michael.Glembotzki@iris-sensing.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240615191941.40301-1-Michael.Glembotzki@iris-sensing.com> References: <20240615191941.40301-1-Michael.Glembotzki@iris-sensing.com> MIME-Version: 1.0 X-Original-Sender: m.glembo@gmail.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Y2ZEdeul; spf=pass (google.com: domain of m.glembo@gmail.com designates 2a00:1450:4864:20::535 as permitted sender) smtp.mailfrom=m.glembo@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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: , mongoose rev-id: b46bee0540c83c780ae9622ef18b9cc8a7b3ebab Signed-off-by: Michael Glembotzki --- mongoose/mongoose_interface.c | 2 +- mongoose/mongoose_multipart.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mongoose/mongoose_interface.c b/mongoose/mongoose_interface.c index ba2e8d35..66de0723 100644 --- a/mongoose/mongoose_interface.c +++ b/mongoose/mongoose_interface.c @@ -344,7 +344,7 @@ static void restart_handler(struct mg_connection *nc, void *ev_data) struct mg_http_message *hm = (struct mg_http_message *) ev_data; ipc_message msg = {}; - if(mg_vcasecmp(&hm->method, "POST") != 0) { + if(mg_strcasecmp(hm->method, mg_str("POST")) != 0) { mg_http_reply(nc, 405, "", "%s", "Method Not Allowed\n"); return; } diff --git a/mongoose/mongoose_multipart.c b/mongoose/mongoose_multipart.c index 265c02b9..29ec8a0b 100644 --- a/mongoose/mongoose_multipart.c +++ b/mongoose/mongoose_multipart.c @@ -336,7 +336,7 @@ void multipart_upload_handler(struct mg_connection *c, int ev, void *ev_data) } if (ev == MG_EV_READ) { - if(mg_vcasecmp(&hm->method, "POST") != 0) { + if(mg_strcasecmp(hm->method, mg_str("POST")) != 0) { mg_http_reply(c, 405, "", "%s", "Method Not Allowed\n"); c->is_draining = 1; return;