Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
martintc committed Oct 12, 2021
1 parent 99a8536 commit ed2c0cb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ut_assert/src/uttools.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ bool UtMem2BinFile(const void *Memory, const char *Filename, uint32 Length)
FILE * fp;
struct stat dststat;

if (fp = fopen(Filename, "w")) {
if ((fp = fopen(Filename, "w"))) {
int fd = fileno(fp);
fstat(fd, &dststat);
if ((fchmod(fd, dststat.st_mode & ~(S_IRGRP | S_IWGRP | S_IXGRP | S_IROTH | S_IWOTH | S_IXOTH)) == 0))
Expand Down Expand Up @@ -114,8 +114,8 @@ bool UtMem2HexFile(const void *Memory, const char *Filename, uint32 Length)

if ((fp = fopen(Filename, "w")))
{
int fd = fileno(fp);
fstat(fd, &dststat);
int fd = fileno(fp);
fstat(fd, &dststat);
if ((fchmod(fd, dststat.st_mode & ~(S_IRGRP | S_IWGRP | S_IXGRP | S_IROTH | S_IWOTH | S_IXOTH)) == 0))
{

Expand Down

0 comments on commit ed2c0cb

Please sign in to comment.