From 03e1579f42a13b5e8ccf26bcc55fa5c23ba9f313 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Sat, 10 Apr 2021 09:44:03 -0400 Subject: [PATCH] Use SPDX-style license header This is copied from the lttng-tools repo. In that repo, the comment is above the header include guard, so I put it at the same place here. Change-Id: If71e76e78fe2d4347b5ef24d37126ce7f33fb0a1 Signed-off-by: Simon Marchi --- argpar/argpar.c | 20 ++------------------ argpar/argpar.h | 26 +++++--------------------- 2 files changed, 7 insertions(+), 39 deletions(-) diff --git a/argpar/argpar.c b/argpar/argpar.c index b110f18..f5275aa 100644 --- a/argpar/argpar.c +++ b/argpar/argpar.c @@ -1,23 +1,7 @@ /* - * Copyright 2019 Philippe Proulx - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: + * SPDX-License-Identifier: MIT * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. + * Copyright 2019 Philippe Proulx */ #include diff --git a/argpar/argpar.h b/argpar/argpar.h index 7a50f45..00334cd 100644 --- a/argpar/argpar.h +++ b/argpar/argpar.h @@ -1,28 +1,12 @@ -#ifndef BABELTRACE_ARGPAR_H -#define BABELTRACE_ARGPAR_H - /* - * Copyright 2019 Philippe Proulx + * SPDX-License-Identifier: MIT * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. + * Copyright 2019 Philippe Proulx */ +#ifndef BABELTRACE_ARGPAR_H +#define BABELTRACE_ARGPAR_H + #include /* Sentinel for an option descriptor array */ -- 2.34.1