summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/fileio.cpp4
-rw-r--r--src/newgrf_house.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/fileio.cpp b/src/fileio.cpp
index 851090c07..d2bfe0396 100644
--- a/src/fileio.cpp
+++ b/src/fileio.cpp
@@ -721,7 +721,7 @@ bool TarScanner::AddFile(const char *filename, size_t basepath_length, const cha
assert(tar_filename == NULL);
/* The TAR-header, repeated for every file */
- typedef struct TarHeader {
+ struct TarHeader {
char name[100]; ///< Name of the file
char mode[8];
char uid[8];
@@ -740,7 +740,7 @@ bool TarScanner::AddFile(const char *filename, size_t basepath_length, const cha
char prefix[155]; ///< Path of the file
char unused[12];
- } TarHeader;
+ };
/* Check if we already seen this file */
TarList::iterator it = _tar_list[this->subdir].find(filename);
diff --git a/src/newgrf_house.cpp b/src/newgrf_house.cpp
index e54a97685..9a7ff4444 100644
--- a/src/newgrf_house.cpp
+++ b/src/newgrf_house.cpp
@@ -199,10 +199,10 @@ static uint32 GetNearbyTileInformation(byte parameter, TileIndex tile, bool grf_
}
/** Structure with user-data for SearchNearbyHouseXXX - functions */
-typedef struct {
+struct SearchNearbyHouseData {
const HouseSpec *hs; ///< Specs of the house that started the search.
TileIndex north_tile; ///< Northern tile of the house.
-} SearchNearbyHouseData;
+};
/**
* Callback function to search a house by its HouseID