Skip to content

Commit

Permalink
Fixed warnings: This clauses does not guard statements, but the latte…
Browse files Browse the repository at this point in the history
…r are misleadingly indented as if it were guarded by the statement
  • Loading branch information
AKuHAK authored and sp193 committed Jan 18, 2019
1 parent 0cce798 commit cf941c4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
3 changes: 2 additions & 1 deletion ee/libc/src/stdio.c
Expand Up @@ -545,9 +545,10 @@ FILE *fdopen(int fd, const char *mode)
int fileno(FILE * f) {
if (f->fd > 0)
return f->fd;
else
else {
errno = EBADF;
return -1;
}
}
#endif

Expand Down
12 changes: 6 additions & 6 deletions iop/memorycard/mcman/src/main.c
Expand Up @@ -825,8 +825,8 @@ int McRead(int fd, void *buf, int length) // Export #8
else
r = mcman_read1(fd, buf, length);

if (r < 0)
fh->status = 0;
if (r < 0)
fh->status = 0;

if (r < -9) {
mcman_invhandles(fh->port, fh->slot);
Expand Down Expand Up @@ -861,8 +861,8 @@ int McWrite(int fd, void *buf, int length) // Export #9
else
r = mcman_write1(fd, buf, length);

if (r < 0)
fh->status = 0;
if (r < 0)
fh->status = 0;

if (r < -9) {
mcman_invhandles(fh->port, fh->slot);
Expand Down Expand Up @@ -940,8 +940,8 @@ int mcman_dread(int fd, fio_dirent_t *dirent)
else
r = mcman_dread1(fd, dirent);

if (r < 0)
fh->status = 0;
if (r < 0)
fh->status = 0;

if (r < -9) {
mcman_invhandles(fh->port, fh->slot);
Expand Down
2 changes: 1 addition & 1 deletion iop/system/padman/src/padPortOpen.c
Expand Up @@ -150,7 +150,7 @@ static void QueryPadThread(void *arg)

if(pstate->disconnected != 0)
{
for(i=0; i < 6; i++);
for(i=0; i < 6; i++)
pstate->ee_actAlignData.data[i] = 0xFF;
}

Expand Down

0 comments on commit cf941c4

Please sign in to comment.