Skip to content

Commit dea8416

Browse files
committed
Fixed error and clang formatted
1 parent 69f349c commit dea8416

5 files changed

Lines changed: 13 additions & 13 deletions

File tree

src/hdf/btree.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ static int readBTLF(struct READER *reader, struct BTREE *btree,
8383
mylog("cannot read signature of BTLF\n");
8484
return MYSOFA_INVALID_FORMAT;
8585
}
86-
buf[4]=0;
86+
buf[4] = 0;
8787
mylog("%08" PRIX64 " %.4s\n", (uint64_t)ftell(reader->fhd) - 4, buf);
8888

8989
if (fgetc(reader->fhd) != 0) {
@@ -161,7 +161,7 @@ int btreeRead(struct READER *reader, struct BTREE *btree) {
161161
mylog("cannot read signature of BTHD\n");
162162
return MYSOFA_INVALID_FORMAT;
163163
}
164-
buf[4]=0;
164+
buf[4] = 0;
165165
mylog("%08" PRIX64 " %.4s\n", (uint64_t)ftell(reader->fhd) - 4, buf);
166166

167167
if (fgetc(reader->fhd) != 0) {
@@ -235,7 +235,7 @@ int treeRead(struct READER *reader, struct DATAOBJECT *data) {
235235
mylog("cannot read signature of TREE\n");
236236
return MYSOFA_INVALID_FORMAT;
237237
}
238-
buf[4]=0;
238+
buf[4] = 0;
239239
mylog("%08" PRIX64 " %.4s\n", (uint64_t)ftell(reader->fhd) - 4, buf);
240240

241241
node_type = (uint8_t)fgetc(reader->fhd);

src/hdf/dataobject.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,8 @@ static int readOHDRHeaderMessageDataFill3(struct READER *reader) {
399399

400400
static int readOHDRHeaderMessageDataFill(struct READER *reader) {
401401

402-
switch (fgetc(reader->fhd)) {
402+
int version = fgetc(reader->fhd);
403+
switch (version) {
403404
case 1:
404405
case 2:
405406
return readOHDRHeaderMessageDataFill1or2(reader);
@@ -1035,7 +1036,7 @@ static int readOCHK(struct READER *reader, struct DATAOBJECT *dataobject,
10351036
mylog("cannot read signature of OCHK\n");
10361037
return MYSOFA_INVALID_FORMAT;
10371038
}
1038-
buf[4]=0;
1039+
buf[4] = 0;
10391040
mylog("%08" PRIX64 " %.4s\n", (uint64_t)ftell(reader->fhd) - 4, buf);
10401041

10411042
err = readOHDRmessages(reader, dataobject, end - 4); /* subtract checksum */
@@ -1061,7 +1062,7 @@ int dataobjectRead(struct READER *reader, struct DATAOBJECT *dataobject,
10611062
mylog("cannot read signature of data object\n");
10621063
return MYSOFA_INVALID_FORMAT;
10631064
}
1064-
buf[4]=0;
1065+
buf[4] = 0;
10651066
mylog("%08" PRIX64 " %.4s\n", dataobject->address, buf);
10661067

10671068
if (fgetc(reader->fhd) != 2) {

src/hdf/fractalhead.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ static int directblockRead(struct READER *reader, struct DATAOBJECT *dataobject,
4444
mylog("cannot read signature of fractal heap indirect block\n");
4545
return MYSOFA_INVALID_FORMAT;
4646
}
47-
buf[4]=0;
47+
buf[4] = 0;
4848
mylog("%08" PRIX64 " %.4s stack %d\n", (uint64_t)ftell(reader->fhd) - 4, buf,
4949
reader->recursive_counter);
5050

@@ -371,7 +371,7 @@ static int indirectblockRead(struct READER *reader,
371371
mylog("cannot read signature of fractal heap indirect block\n");
372372
return MYSOFA_INVALID_FORMAT;
373373
}
374-
buf[4]=0;
374+
buf[4] = 0;
375375
mylog("%08" PRIX64 " %.4s\n", (uint64_t)ftell(reader->fhd) - 4, buf);
376376

377377
if (fgetc(reader->fhd) != 0) {
@@ -484,7 +484,7 @@ int fractalheapRead(struct READER *reader, struct DATAOBJECT *dataobject,
484484
mylog("cannot read signature of fractal heap\n");
485485
return MYSOFA_UNSUPPORTED_FORMAT;
486486
}
487-
buf[4]=0;
487+
buf[4] = 0;
488488
mylog("%" PRIX64 " %.4s\n", (uint64_t)ftell(reader->fhd) - 4, buf);
489489

490490
if (fgetc(reader->fhd) != 0) {

src/hdf/gcol.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ static int readGCOL(struct READER *reader) {
2727
mylog("cannot read signature of global heap collection\n");
2828
return MYSOFA_INVALID_FORMAT;
2929
}
30-
buf[4]=0;
30+
buf[4] = 0;
3131

3232
if (fgetc(reader->fhd) != 1) {
3333
mylog("object GCOL must have version 1\n");

src/hrtf/mysofa_export.h.in

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11

22
/**
33
* use this file if you do not use CMAKE to generate you an own file
4-
*/
5-
6-
#define MYSOFA_EXPORT
4+
*/
75

6+
#define MYSOFA_EXPORT

0 commit comments

Comments
 (0)