From 4a275b2e66edd7305992fc8ec5d69e7cd43d7f2f Mon Sep 17 00:00:00 2001 From: "Peter H. Froehlich" Date: Sat, 4 Sep 2021 18:16:47 +0200 Subject: Remove part.h, more unaligned accesses, more named constants, proper exit status. --- part.h | 47 ----------------------------------------------- 1 file changed, 47 deletions(-) delete mode 100644 part.h (limited to 'part.h') diff --git a/part.h b/part.h deleted file mode 100644 index a04ef02..0000000 --- a/part.h +++ /dev/null @@ -1,47 +0,0 @@ -#pragma once - -/* SPDX-License-Identifier: MIT */ - -/* Copyright (C) 2014 by John Cronin - * - * 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. - */ - -#ifndef PART_H -#define PART_H - -#include "guid.h" - -#include -#include - -struct partition { - GUID type; - GUID uuid; - uint64_t attrs; - long src_length; - FILE *src; - struct partition *next; /* TODO why build a list? */ - int id; - int sect_start; - int sect_length; - char name[52]; -}; - -#endif -- cgit 1.4.1-2-gfad0