Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sao.c: In function 'trim':
- sao.c:71:12: warning: implicit declaration of function 'isspace' [-Wimplicit-function-declaration]
- while (isspace(str[begin])) begin++;
- ^~~~~~~
- sao.c: In function 'epollEventLoop':
- sao.c:250:93: warning: pointer targets in passing argument 1 of 'fdgets' differ in signedness [-Wpointer-sign]
- while(memset(buf, 0, sizeof buf) && (count = fdgets(buf, sizeof buf, thefd)) > 0)
- ^~~
- sao.c:60:5: note: expected 'unsigned char *' but argument is of type 'char *'
- int fdgets(unsigned char *buffer, int bufferSize, int fd)
- ^~~~~~
- sao.c:262:65: warning: passing argument 1 of 'fprintf' discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers]
- fprintf(telFD, "%s\n", line);
- ^~~~~
- In file included from sao.c:19:0:
- /usr/include/stdio.h:358:12: note: expected 'FILE * restrict {aka struct _IO_FILE * restrict}' but argument is of type 'volatile FILE * {aka volatile struct _IO_FILE *}'
- extern int fprintf (FILE *__restrict __stream,
- ^~~~~~~
- sao.c:263:64: warning: passing argument 1 of 'fflush' discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers]
- fflush(telFD);
- ^~~~~
- In file included from sao.c:19:0:
- /usr/include/stdio.h:244:12: note: expected 'FILE * {aka struct _IO_FILE *}' but argument is of type 'volatile FILE * {aka volatile struct _IO_FILE *}'
- extern int fflush (FILE *__stream);
- ^~~~~~
- sao.c:269:63: warning: unused variable 'line' [-Wunused-variable]
- char *line = strstr(buf, "PROBING");
- ^~~~
- sao.c:275:63: warning: unused variable 'line' [-Wunused-variable]
- char *line = strstr(buf, "REMOVING PROBE");
- ^~~~
- sao.c: In function 'titleWriter':
- sao.c:324:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
- int thefd = (int)sock;
- ^
- sao.c:330:77: warning: 'return' with no value, in function returning non-void
- if(send(thefd, string, strlen(string), MSG_NOSIGNAL) == -1) return;
- ^~~~~~
- sao.c:322:7: note: declared here
- void *titleWriter(void *sock)
- ^~~~~~~~~~~
- sao.c: In function 'telnetWorker':
- sao.c:379:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
- int thefd = (int)sock;
- ^
- sao.c:406:32: error: invalid operands to binary % (have 'char *' and 'int')
- fscanf(fp, "%s %s" %i, accounts[j].id, accounts[j].password);
- ~~~~~~~ ^
- sao.c:411:19: warning: pointer targets in passing argument 1 of 'fdgets' differ in signedness [-Wpointer-sign]
- if(fdgets(buf, sizeof buf, thefd) < 1) goto end;
- ^~~
- sao.c:60:5: note: expected 'unsigned char *' but argument is of type 'char *'
- int fdgets(unsigned char *buffer, int bufferSize, int fd)
- ^~~~~~
- sao.c:416:27: warning: left-hand operand of comma expression has no effect [-Wunused-value]
- nickstring = ("%s", buf);
- ^
- sao.c:421:19: warning: pointer targets in passing argument 1 of 'fdgets' differ in signedness [-Wpointer-sign]
- if(fdgets(buf, sizeof buf, thefd) < 1) goto end;
- ^~~
- sao.c:60:5: note: expected 'unsigned char *' but argument is of type 'char *'
- int fdgets(unsigned char *buffer, int bufferSize, int fd)
- ^~~~~~
- sao.c:441:20: warning: too many arguments for format [-Wformat-extra-args]
- sprintf(bashline,"\x1b[35;1m[\x1b[37;1m%s\x1b[35;1m@\x1b[37;1mシノア\x1b[35;1m]\x1b[36;1m~#\x1b[0m",accounts[find_line].id, buf);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- sao.c:450:22: warning: pointer targets in passing argument 1 of 'fdgets' differ in signedness [-Wpointer-sign]
- while(fdgets(buf, sizeof buf, thefd) > 0)
- ^~~
- sao.c:60:5: note: expected 'unsigned char *' but argument is of type 'char *'
- int fdgets(unsigned char *buffer, int bufferSize, int fd)
- ^~~~~~
- sao.c:455:69: warning: 'return' with no value, in function returning non-void
- if(send(thefd, botnet, strlen(botnet), MSG_NOSIGNAL) == -1) return;
- ^~~~~~
- sao.c:376:7: note: declared here
- void *telnetWorker(void *sock)
- ^~~~~~~~~~~~
- sao.c:460:69: warning: 'return' with no value, in function returning non-void
- if(send(thefd, botnet, strlen(botnet), MSG_NOSIGNAL) == -1) return;
- ^~~~~~
- sao.c:376:7: note: declared here
- void *telnetWorker(void *sock)
- ^~~~~~~~~~~~
- sao.c:465:69: warning: 'return' with no value, in function returning non-void
- if(send(thefd, botnet, strlen(botnet), MSG_NOSIGNAL) == -1) return;
- ^~~~~~
- sao.c:376:7: note: declared here
- void *telnetWorker(void *sock)
- ^~~~~~~~~~~~
- sao.c:470:69: warning: 'return' with no value, in function returning non-void
- if(send(thefd, botnet, strlen(botnet), MSG_NOSIGNAL) == -1) return;
- ^~~~~~
- sao.c:376:7: note: declared here
- void *telnetWorker(void *sock)
- ^~~~~~~~~~~~
- sao.c:475:69: warning: 'return' with no value, in function returning non-void
- if(send(thefd, botnet, strlen(botnet), MSG_NOSIGNAL) == -1) return;
- ^~~~~~
- sao.c:376:7: note: declared here
- void *telnetWorker(void *sock)
- ^~~~~~~~~~~~
- sao.c:480:69: warning: 'return' with no value, in function returning non-void
- if(send(thefd, botnet, strlen(botnet), MSG_NOSIGNAL) == -1) return;
- ^~~~~~
- sao.c:376:7: note: declared here
- void *telnetWorker(void *sock)
- ^~~~~~~~~~~~
- sao.c:485:69: warning: 'return' with no value, in function returning non-void
- if(send(thefd, botnet, strlen(botnet), MSG_NOSIGNAL) == -1) return;
- ^~~~~~
- sao.c:376:7: note: declared here
- void *telnetWorker(void *sock)
- ^~~~~~~~~~~~
- sao.c:490:69: warning: 'return' with no value, in function returning non-void
- if(send(thefd, botnet, strlen(botnet), MSG_NOSIGNAL) == -1) return;
- ^~~~~~
- sao.c:376:7: note: declared here
- void *telnetWorker(void *sock)
- ^~~~~~~~~~~~
- sao.c:495:69: warning: 'return' with no value, in function returning non-void
- if(send(thefd, botnet, strlen(botnet), MSG_NOSIGNAL) == -1) return;
- ^~~~~~
- sao.c:376:7: note: declared here
- void *telnetWorker(void *sock)
- ^~~~~~~~~~~~
- sao.c:500:69: warning: 'return' with no value, in function returning non-void
- if(send(thefd, botnet, strlen(botnet), MSG_NOSIGNAL) == -1) return;
- ^~~~~~
- sao.c:376:7: note: declared here
- void *telnetWorker(void *sock)
- ^~~~~~~~~~~~
- sao.c:505:69: warning: 'return' with no value, in function returning non-void
- if(send(thefd, botnet, strlen(botnet), MSG_NOSIGNAL) == -1) return;
- ^~~~~~
- sao.c:376:7: note: declared here
- void *telnetWorker(void *sock)
- ^~~~~~~~~~~~
- sao.c:510:69: warning: 'return' with no value, in function returning non-void
- if(send(thefd, botnet, strlen(botnet), MSG_NOSIGNAL) == -1) return;
- ^~~~~~
- sao.c:376:7: note: declared here
- void *telnetWorker(void *sock)
- ^~~~~~~~~~~~
- sao.c:517:22: warning: unused variable 'helpline4' [-Wunused-variable]
- char helpline4 [80];
- ^~~~~~~~~
- sao.c:572:22: warning: unused variable 'extraline7' [-Wunused-variable]
- char extraline7 [80];
- ^~~~~~~~~~
- sao.c:571:22: warning: unused variable 'extraline6' [-Wunused-variable]
- char extraline6 [80];
- ^~~~~~~~~~
- sao.c:570:22: warning: unused variable 'extraline5' [-Wunused-variable]
- char extraline5 [80];
- ^~~~~~~~~~
- sao.c:765:27: warning: too many arguments for format [-Wformat-extra-args]
- sprintf(botnet, "Thanks for buying %s see you next time\r\n", accounts[find_line].id, buf);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- sao.c:766:71: warning: 'return' with no value, in function returning non-void
- if(send(thefd, botnet, strlen(botnet), MSG_NOSIGNAL) == -1) return;
- ^~~~~~
- sao.c:376:7: note: declared here
- void *telnetWorker(void *sock)
- ^~~~~~~~~~~~
- sao.c:437:9: warning: label 'Title' defined but not used [-Wunused-label]
- Title:
- ^~~~~
- sao.c:395:13: warning: variable 'c' set but not used [-Wunused-but-set-variable]
- int c;
- ^
- sao.c:388:15: warning: unused variable 'password' [-Wunused-variable]
- char* password;
- ^~~~~~~~
- sao.c:387:15: warning: unused variable 'username' [-Wunused-variable]
- char* username;
- ^~~~~~~~
- sao.c: In function 'telnetListener':
- sao.c:810:55: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
- pthread_create( &thread, NULL, &telnetWorker, (void *)newsockfd); }
- ^
- sao.c: At top level:
- sao.c:813:5: warning: third argument of 'main' should probably be 'char **' [-Wmain]
- int main (int argc, char *argv[], void *sock)
- ^~~~
- sao.c: In function 'main':
- sao.c:856:42: warning: passing argument 3 of 'pthread_create' from incompatible pointer type [-Wincompatible-pointer-types]
- pthread_create(&thread[0], NULL, &telnetListener, port);
- ^
- In file included from sao.c:30:0:
- /usr/include/pthread.h:233:12: note: expected 'void * (*)(void *)' but argument is of type 'void * (*)(int)'
- extern int pthread_create (pthread_t *__restrict __newthread,
- ^~~~~~~~~~~~~~
- sao.c:856:59: warning: passing argument 4 of 'pthread_create' makes pointer from integer without a cast [-Wint-conversion]
- pthread_create(&thread[0], NULL, &telnetListener, port);
- ^~~~
- In file included from sao.c:30:0:
- /usr/include/pthread.h:233:12: note: expected 'void * restrict' but argument is of type 'int'
- extern int pthread_create (pthread_t *__restrict __newthread,
- ^~~~~~~~~~~~~~
- At top level:
- sao.c:53:23: warning: 'fileFD' defined but not used [-Wunused-variable]
- static volatile FILE *fileFD;
- ^~~~~~
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement