Skip to content

Commit

Permalink
Remove unnecessary references to stdio
Browse files Browse the repository at this point in the history
  • Loading branch information
empathicqubit committed Jan 18, 2023
1 parent 86a4c13 commit 6d05eab
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion libsrc/target/ticalc/fcntl/open.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

#include "ticalc_fcntl.h"
#include <fcntl.h>
#include <stdio.h>
#include <errno.h>

__asm
Expand Down
3 changes: 1 addition & 2 deletions libsrc/target/ticalc/fcntl/read.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

#include <sys/types.h>
#include <fcntl.h>
#include <stdio.h>
#include "ticalc_fcntl.h"

/** Read bytes from an AppVar */
Expand All @@ -11,7 +10,7 @@ ssize_t read(int fd, void *ptr, size_t len) __smallc
unsigned char *p = ptr;
for(; len > 0; len--) {
int byte = readbyte(fd);
if(byte == EOF) {
if(byte < 0) {
return p - ((char*)ptr);
}

Expand Down
1 change: 0 additions & 1 deletion libsrc/target/ticalc/fcntl/rename.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* $Id: rename.c $
*/

#include <stdio.h>
#include <errno.h>

int rename(char *oldname, char *newname)
Expand Down
1 change: 0 additions & 1 deletion libsrc/target/ticalc/fcntl/write.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include <sys/types.h>
#include <fcntl.h>
#include <stdio.h>
#include <errno.h>

#include "ticalc_fcntl.h"
Expand Down

0 comments on commit 6d05eab

Please sign in to comment.