*: add most of the required setup_common_bufsiz() calls
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
		@@ -76,6 +76,7 @@ struct swap_header_v1 {
 | 
			
		||||
 | 
			
		||||
#define NWORDS 129
 | 
			
		||||
#define hdr ((struct swap_header_v1*)bb_common_bufsiz1)
 | 
			
		||||
#define INIT_G() do { setup_common_bufsiz(); } while (0)
 | 
			
		||||
 | 
			
		||||
struct BUG_sizes {
 | 
			
		||||
	char swap_header_v1_wrong[sizeof(*hdr)  != (NWORDS * 4) ? -1 : 1];
 | 
			
		||||
@@ -93,6 +94,8 @@ int mkswap_main(int argc UNUSED_PARAM, char **argv)
 | 
			
		||||
	off_t len;
 | 
			
		||||
	const char *label = "";
 | 
			
		||||
 | 
			
		||||
	INIT_G();
 | 
			
		||||
 | 
			
		||||
	opt_complementary = "-1"; /* at least one param */
 | 
			
		||||
	/* TODO: -p PAGESZ, -U UUID */
 | 
			
		||||
	getopt32(argv, "L:", &label);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user