mirror of
				https://review.coreboot.org/flashrom.git
				synced 2025-11-04 07:00:39 +01: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. Change-Id: Iaceeabedc26e93147d8122376d88e730aad1e355 Signed-off-by: Antonio Vázquez Blanco <antoniovazquezblanco@gmail.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/85072 Reviewed-by: Anastasia Klimchuk <aklm@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
		
				
					committed by
					
						
						Anastasia Klimchuk
					
				
			
			
				
	
			
			
			
						parent
						
							38ef3513cf
						
					
				
				
					commit
					a3a8ae7212
				
			@@ -25,7 +25,7 @@
 | 
				
			|||||||
#include <stdbool.h>
 | 
					#include <stdbool.h>
 | 
				
			||||||
#include <stdlib.h>
 | 
					#include <stdlib.h>
 | 
				
			||||||
#include <stdint.h>
 | 
					#include <stdint.h>
 | 
				
			||||||
#include <cli_classic.h>
 | 
					#include <cli_getopt.h>
 | 
				
			||||||
#include "flash.h"
 | 
					#include "flash.h"
 | 
				
			||||||
#include "flashchips.h"
 | 
					#include "flashchips.h"
 | 
				
			||||||
#include "fmap.h"
 | 
					#include "fmap.h"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -25,12 +25,13 @@
 | 
				
			|||||||
 * SOFTWARE.
 | 
					 * SOFTWARE.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include <cli_getopt.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <unistd.h>
 | 
					#include <unistd.h>
 | 
				
			||||||
#include <wchar.h>
 | 
					#include <wchar.h>
 | 
				
			||||||
#include <string.h>
 | 
					#include <string.h>
 | 
				
			||||||
#include <limits.h>
 | 
					#include <limits.h>
 | 
				
			||||||
#include <stdlib.h>
 | 
					#include <stdlib.h>
 | 
				
			||||||
#include "cli_classic.h"
 | 
					 | 
				
			||||||
#include "flash.h"
 | 
					#include "flash.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
char *optarg;
 | 
					char *optarg;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -12,8 +12,13 @@
 | 
				
			|||||||
 * GNU General Public License for more details.
 | 
					 * GNU General Public License for more details.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifndef CLI_CLASSIC_H
 | 
					#ifndef __CLI_GETOPT_H__
 | 
				
			||||||
#define CLI_CLASSIC_H
 | 
					#define __CLI_GETOPT_H__
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/**
 | 
				
			||||||
 | 
					 * This header is responsible for either including a standard getop
 | 
				
			||||||
 | 
					 * implementation header or to provide a compatible one.
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifdef HAVE_GETOPT_H
 | 
					#ifdef HAVE_GETOPT_H
 | 
				
			||||||
#include <getopt.h>
 | 
					#include <getopt.h>
 | 
				
			||||||
@@ -40,4 +45,4 @@ int getopt_long_only (int argc, char *const *argv, const char *shortopts,
 | 
				
			|||||||
			const struct option *longopts, int *longind);
 | 
								const struct option *longopts, int *longind);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#endif /* HAVE_GETOPT_H */
 | 
					#endif /* HAVE_GETOPT_H */
 | 
				
			||||||
#endif /* CLI_CLASSIC_H */
 | 
					#endif /* __CLI_GETOPT_H__ */
 | 
				
			||||||
		Reference in New Issue
	
	Block a user