ttcp.c:150:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 150 | main(argc,argv) | ^~~~ ttcp.c: In function ‘main’: ttcp.c:159:21: warning: implicit declaration of function ‘getopt’ [-Wimplicit-function-declaration] 159 | while ((c = getopt(argc, argv, "drstuvBDTb:f:l:n:p:A:O:")) != -1) { | ^~~~~~ ttcp.c:183:32: warning: implicit declaration of function ‘atoi’ [-Wimplicit-function-dec Slackware package maker, version 3.14159265. Searching for symbolic links: No symbolic links were found, so we won't make an installation script. You can make your own later in ./install/doinst.sh and rebuild the package if you like. This next step is optional - you can set the directories in your package to some sane permissions. If any of the directories in your package have special permissions, then DO NOT reset them here! Would you like to reset all directory permissions to 755 (drwxr-xr-x) and directory ownerships to root.root ([y]es, [n]o)? n Creating Slackware package: /usr/src/slapt-src-x86_64/network/ttcp/ttcp-1.12-x86_64-1salix15.0.txz Slackware package /usr/src/slapt-src-x86_64/network/ttcp/ttcp-1.12-x86_64-1salix15.0.txz created. Installing package ttcp-1.12-x86_64-1salix15.0... | ttcp (TCP/UDP Benchmarking tool) | | TTCP is a benchmarking tool for determining TCP and UDP performance | between two systems. It can also be used as a network pipe to | transfer data between two systems. | | | | | | | | ™ or provide a declaration of ‘malloc’ 67 | #include +++ |+#include 68 | #endif ttcp.c:263:29: warning: incompatible implicit declaration of built-in function ‘malloc’ [-Wbuiltin-declaration-mismatch] 263 | if ( (buf = (char *)malloc(buflen+bufalign)) == (char *)NULL) | ^~~~~~ ttcp.c:263:29: note: include ‘’ or provide a declaration of ‘malloc’ ttcp.c:266:36: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 266 | buf +=(bufalign - ((int)buf % bufalign) + bufoffset) % bufalign; | ^ ttcp.c:288:22: warning: passing argument 2 of ‘bind’ from incompatible pointer type [-Wincompatible-pointer-types] 288 | if (bind(fd, &sinme, sizeof(sinme)) < 0) | ^~~~~~ | | | struct sockaddr_in * In file included from ttcp.c:52: /usr/include/sys/socket.h:112:49: note: expected ‘const struct sockaddr *’ but argument is of type ‘struct sockaddr_in *’ 112 | extern int bind (int __fd, __CONST_SOCKADDR_ARG __addr, socklen_t __len) | ^ ttcp.c:329:32: warning: passing argument 2 of ‘connect’ from incompatible pointer type [-Wincompatible-pointer-types] 329 | if(connect(fd, &sinhim, sizeof(sinhim) ) < 0) | ^~~~~~~ | | | struct sockaddr_in * In file included from ttcp.c:52: /usr/include/sys/socket.h:126:52: note: expected ‘const struct sockaddr *’ but argument is of type ‘struct sockaddr_in *’ 126 | extern int connect (int __fd, __CONST_SOCKADDR_ARG __addr, socklen_t __len); | ^ ttcp.c:351:35: warning: passing argument 2 of ‘accept’ from incompatible pointer type [-Wincompatible-pointer-types] 351 | if((fd=accept(fd, &frominet, &fromlen) ) < 0) | ^~~~~~~~~ | | | struct sockaddr_in * In file included from ttcp.c:52: /usr/include/sys/socket.h:232:45: note: expected ‘struct sockaddr * restrict’ but argument is of type ‘struct sockaddr_in *’ 232 | extern int accept (int __fd, __SOCKADDR_ARG __addr, | ^ ttcp.c:355:39: warning: passing argument 2 of ‘getpeername’ from incompatible pointer type [-Wincompatible-pointer-types] 355 | if (getpeername(fd, (struct sockaddr_in *) &peer, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | struct sockaddr_in * In file included from ttcp.c:52: /usr/include/sys/socket.h:130:50: note: expected ‘struct sockaddr * restrict’ but argument is of type ‘struct sockaddr_in *’ 130 | extern int getpeername (int __fd, __SOCKADDR_ARG __addr, | ^ ttcp.c:396:36: warning: implicit declaration of function ‘read’; did you mean ‘mread’? [-Wimplicit-function-declaration] 396 | while((cnt=read(0,buf,buflen)) > 0 && | ^~~~ | mread ttcp.c:401:29: warning: implicit declaration of function ‘write’; did you mean ‘Nwrite’? [-Wimplicit-function-declaration] 401 | write(1,buf,cnt) == cnt) | ^~~~~ | Nwrite ttcp.c:438:9: warning: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration] 438 | exit(0); | ^~~~ ttcp.c:438:9: note: include ‘’ or provide a declaration of ‘exit’ ttcp.c:438:9: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch] ttcp.c:438:9: note: include ‘’ or provide a declaration of ‘exit’ ttcp.c: In function ‘err’: ttcp.c:452:9: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch] 452 | exit(1); | ^~~~ ttcp.c:452:9: note: include ‘’ or provide a declaration of ‘exit’ ttcp.c: At top level: ttcp.c:462:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 462 | pattern( cp, cnt ) | ^~~~~~~ ttcp.c: In function ‘read_timer’: ttcp.c:555:1: warning: type of ‘len’ defaults to ‘int’ [-Wimplicit-int] 555 | read_timer(str,len) | ^~~~~~~~~~ ttcp.c:567:15: warning: implicit declaration of function ‘strncpy’ [-Wimplicit-function-declaration] 567 | (void)strncpy( str, line, len ); | ^~~~~~~ ttcp.c:68:1: note: include ‘’ or provide a declaration of ‘strncpy’ 67 | #include +++ |+#include 68 | #endif ttcp.c:567:15: warning: incompatible implicit declaration of built-in function ‘strncpy’ [-Wbuiltin-declaration-mismatch] 567 | (void)strncpy( str, line, len ); | ^~~~~~~ ttcp.c:567:15: note: include ‘’ or provide a declaration of ‘strncpy’ ttcp.c: At top level: ttcp.c:746:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 746 | Nread( fd, buf, count ) | ^~~~~ ttcp.c: In function ‘Nread’: ttcp.c:755:52: warning: passing argument 5 of ‘recvfrom’ from incompatible pointer type [-Wincompatible-pointer-types] 755 | cnt = recvfrom( fd, buf, count, 0, &from, &len ); | ^~~~~ | | | struct sockaddr_in * In file included from ttcp.c:52: /usr/include/sys/socket.h:164:54: note: expected ‘struct sockaddr * restrict’ but argument is of type ‘struct sockaddr_in *’ 164 | int __flags, __SOCKADDR_ARG __addr, | ^ ttcp.c: At top level: ttcp.c:777:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 777 | Nwrite( fd, buf, count ) | ^~~~~~ ttcp.c: In function ‘Nwrite’: ttcp.c:785:50: warning: passing argument 5 of ‘sendto’ from incompatible pointer type [-Wincompatible-pointer-types] 785 | cnt = sendto( fd, buf, count, 0, &sinhim, sizeof(sinhim) ); | ^~~~~~~ | | | struct sockaddr_in * In file included from ttcp.c:52: /usr/include/sys/socket.h:153:58: note: expected ‘const struct sockaddr *’ but argument is of type ‘struct sockaddr_in *’ 153 | int __flags, __CONST_SOCKADDR_ARG __addr, | ^ ttcp.c: In function ‘delay’: ttcp.c:800:1: warning: type of ‘us’ defaults to ‘int’ [-Wimplicit-int] 800 | delay(us) | ^~~~~ ttcp.c:806:26: warning: passing argument 2 of ‘select’ from incompatible pointer type [-Wincompatible-pointer-types] 806 | (void)select( 1, (char *)0, (char *)0, (char *)0, &tv ); | ^~~~~~~~~ | | | char * In file included from /usr/include/sys/types.h:179, from ttcp.c:51: /usr/include/sys/select.h:101:51: note: expected ‘fd_set * restrict’ but argument is of type ‘char *’ 101 | extern int select (int __nfds, fd_set *__restrict __readfds, | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~ ttcp.c:806:37: warning: passing argument 3 of ‘select’ from incompatible pointer type [-Wincompatible-pointer-types] 806 | (void)select( 1, (char *)0, (char *)0, (char *)0, &tv ); | ^~~~~~~~~ | | | char * In file included from /usr/include/sys/types.h:179, from ttcp.c:51: /usr/include/sys/select.h:102:39: note: expected ‘fd_set * restrict’ but argument is of type ‘char *’ 102 | fd_set *__restrict __writefds, | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ ttcp.c:806:48: warning: passing argument 4 of ‘select’ from incompatible pointer type [-Wincompatible-pointer-types] 806 | (void)select( 1, (char *)0, (char *)0, (char *)0, &tv ); | ^~~~~~~~~ | | | char * In file included from /usr/include/sys/types.h:179, from ttcp.c:51: /usr/include/sys/select.h:103:39: note: expected ‘fd_set * restrict’ but argument is of type ‘char *’ 103 | fd_set *__restrict __exceptfds, | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ ./ install/ install/slack-desc usr/ usr/bin/ usr/bin/ttcp usr/doc/ usr/doc/ttcp-1.12/ usr/doc/ttcp-1.12/ttcp.SlackBuild usr/man/ usr/man/man1/ usr/man/man1/ttcp.1.gz