mirror of
https://review.coreboot.org/flashrom.git
synced 2025-09-30 16:24:56 +02:00
Rename cli_classic.h to a more adequate cli_getop.h
The header only defines getop related stuff so it seems more intuitive this way. Also, use SPDX to reduce header comment sizes. Change-Id: I5986828f3bdec583af6f7b02cbe1a9c45ed2000f Signed-off-by: Antonio Vázquez Blanco <antoniovazquezblanco@gmail.com>
This commit is contained in:
32
cli_getopt.c
32
cli_getopt.c
@@ -1,37 +1,21 @@
|
||||
/*
|
||||
* This file is part of the flashrom project.
|
||||
* It comes originally from the musl libc project and is licensed under the
|
||||
* terms of the MIT license.
|
||||
* It comes originally from the musl libc project.
|
||||
*
|
||||
* Copyringht (C) 2023 Rich Felker and the musl authors
|
||||
* Adjusted for flashrom by Thomas Heijligen<thomas.heijligen@secunet.com>
|
||||
*
|
||||
* 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.
|
||||
* SPDX-FileCopyrightText: 2023 Rich Felker and the musl authors
|
||||
* SPDX-FileCopyrightText: Thomas Heijligen <thomas.heijligen@secunet.com>
|
||||
* SPDX-FileCopyrightText: 2024 Antonio Vázquez Blanco <antoniovazquezblanco@gmail.com>
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
#include "cli_getopt.h"
|
||||
|
||||
#include <unistd.h>
|
||||
#include <wchar.h>
|
||||
#include <string.h>
|
||||
#include <limits.h>
|
||||
#include <stdlib.h>
|
||||
#include "cli_classic.h"
|
||||
#include "flash.h"
|
||||
#include "flash.h" // msg_gerr
|
||||
|
||||
char *optarg;
|
||||
int optind=1, opterr=1, optopt, optpos;
|
||||
|
Reference in New Issue
Block a user