Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Build Error #18

Open
zHadsaw opened this issue Oct 23, 2020 · 1 comment
Open

Build Error #18

zHadsaw opened this issue Oct 23, 2020 · 1 comment
Labels

Comments

@zHadsaw
Copy link

zHadsaw commented Oct 23, 2020

╔╦╗╔╦╗╔═╗╔═╗╔═╗╦═╗
║║ ║║║ ║╚═╗║╣ ╠╦╝
═╩╝═╩╝╚═╝╚═╝╚═╝╩╚═ v1.1 builder
Building release
socket.c: In function ‘_dos_udp_send’:
socket.c:128:70: warning: passing argument 6 of ‘recvfrom’ from incompatible pointer type [-Wincompatible-pointer-types]
if (recvfrom(sock, buf, 1024, MSG_PEEK, (struct sockaddr*)&addr, &slen) == -1) {
^~~~~
In file included from /usr/include/netinet/in.h:23,
from /usr/include/arpa/inet.h:22,
from socket.h:13,
from socket.c:9:
/usr/include/x86_64-linux-gnu/sys/socket.h:165:27: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘size_t *’ {aka ‘long unsign
ed int *’}
socklen_t __restrict __addr_len);
~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
socket.c: In function ‘dos_udp_send’:
socket.c:151:86: warning: passing argument 6 of ‘recvfrom’ from incompatible pointer type [-Wincompatible-pointer-types]
if (socket_wait&&recvfrom(sock, buf, bufsize, MSG_PEEK, (struct sockaddr
)&addr, &slen) == -1) {
^~~~~
In file included from /usr/include/netinet/in.h:23,
from /usr/include/arpa/inet.h:22,
from socket.h:13,
from socket.c:9:
/usr/include/x86_64-linux-gnu/sys/socket.h:165:27: note: expected ‘socklen_t * restrict’ {aka ‘unsigned int * restrict’} but argument is of type ‘size_t *’ {aka ‘long unsign
ed int ’}
socklen_t __restrict __addr_len);
~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
ddos.c: In function ‘_ddos_tcp’:
ddos.c:73:37: warning: passing argument 1 of ‘getsockopt’ makes integer from pointer without a cast [-Wint-conversion]
int retval = getsockopt(socket, SOL_SOCKET, SO_ERROR, &_error, &len);
^~~~~~
In file included from /usr/include/netinet/in.h:23,
from /usr/include/arpa/inet.h:22,
from socket.h:13,
from ddos.h:13,
from ddos.c:9:
/usr/include/x86_64-linux-gnu/sys/socket.h:208:28: note: expected ‘int’ but argument is of type ‘int (
)(int, int, int)’
extern int getsockopt (int __fd, int __level, int __optname,
~~~~^~~~
ddos.c: In function ‘ddos’:
ddos.c:164:37: warning: passing argument 3 of ‘pthread_create’ from incompatible pointer type [-Wincompatible-pointer-types]
pthread_create(&_ddos[0], NULL, _ddos_stat, NULL);
^~~~~~~~~~
In file included from ddos.h:17,
from ddos.c:9:
/usr/include/pthread.h:236:15: note: expected ‘void * (
)(void )’ but argument is of type ‘void ()()’
void (__start_routine) (void ),
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
ddos.c:166:45: warning: passing argument 3 of ‘pthread_create’ from incompatible pointer type [-Wincompatible-pointer-types]
if (pthread_create(&_ddos[i], NULL, __ddos_wrapper, p)) {
^~~~~~~~~~~~~~
In file included from ddos.h:17,
from ddos.c:9:
/usr/include/pthread.h:236:15: note: expected ‘void * (
)(void )’ but argument is of type ‘void ()(_dos_param )’ {aka ‘void ()(struct *)’}
void (__start_routine) (void *),
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
main.c: In function ‘main’:
main.c:107:27: warning: passing argument 1 of ‘readfile’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
packet = readfile(getlarg("--packetfile", argv, argc));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ddos.h:14,
from main.c:16:
util.h:25:7: note: expected ‘char ’ but argument is of type ‘const char
char
readfile(char
filename);
^~~~~~~~

@0xf104a
Copy link
Owner

0xf104a commented Oct 24, 2020

Hello.
I can not see any error in build log, only warnings are there

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants