Fix the compile errors I got

- void out link variable in non-unix to prevent unused variable error
- change n's type to size_t from int to prevent unsigned signed comparison
This commit is contained in:
Sally Cochenour 2020-03-29 08:39:15 -04:00
parent f63b321eb2
commit 896f752d94
2 changed files with 2 additions and 1 deletions

View file

@ -213,6 +213,7 @@ int main(int argc, char **argv)
I_OutputMsg("Error symlinking latest-log.txt: %s\n", strerror(errno)); I_OutputMsg("Error symlinking latest-log.txt: %s\n", strerror(errno));
} }
#else/*__unix__*/ #else/*__unix__*/
(void)link;
logstream = fopen("latest-log.txt", "wt+"); logstream = fopen("latest-log.txt", "wt+");
#endif/*__unix__*/ #endif/*__unix__*/
} }

View file

@ -3282,7 +3282,7 @@ static void Shittylogcopy(void)
{ {
char buf[8192]; char buf[8192];
FILE *fp; FILE *fp;
int n; size_t n;
if (fseek(logstream, 0, SEEK_SET) == -1) if (fseek(logstream, 0, SEEK_SET) == -1)
{ {
Shittycopyerror("fseek"); Shittycopyerror("fseek");