ttcp.c:150:1: warning: return type defaults to ‘int’ [-Wimplicit-int] main(argc,argv) ^ ttcp.c: In function ‘main’: ttcp.c:159:14: warning: implicit declaration of function ‘getopt’ [-Wimplicit-function-declaration] while ((c = getopt(argc, argv, "drstuvBDTb:f:l:n:p:A:O:")) != -1) { ^ ttcp.c:183:11: warning: implicit declaration of function ‘atoi’ [-Wimplicit-function-declaration] nbuf = atoi(optarg); ^ tt Slackware package maker, version 3.141593. 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/network/ttcp/ttcp-1.12-i486-1salix.txz Slackware package /usr/src/slapt-src/network/ttcp/ttcp-1.12-i486-1salix.txz created. Installing package ttcp-1.12-i486-1salix... | 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. | | | | | | | | f(sinme)) < 0) ^ In file included from ttcp.c:52:0: /usr/include/sys/socket.h:123:12: note: expected ‘const struct sockaddr *’ but argument is of type ‘struct sockaddr_in *’ extern int bind (int __fd, __CONST_SOCKADDR_ARG __addr, socklen_t __len) ^ ttcp.c:329:18: warning: passing argument 2 of ‘connect’ from incompatible pointer type [-Wincompatible-pointer-types] if(connect(fd, &sinhim, sizeof(sinhim) ) < 0) ^ In file included from ttcp.c:52:0: /usr/include/sys/socket.h:137:12: note: expected ‘const struct sockaddr *’ but argument is of type ‘struct sockaddr_in *’ extern int connect (int __fd, __CONST_SOCKADDR_ARG __addr, socklen_t __len); ^ ttcp.c:351:21: warning: passing argument 2 of ‘accept’ from incompatible pointer type [-Wincompatible-pointer-types] if((fd=accept(fd, &frominet, &fromlen) ) < 0) ^ In file included from ttcp.c:52:0: /usr/include/sys/socket.h:243:12: note: expected ‘struct sockaddr * restrict’ but argument is of type ‘struct sockaddr_in *’ extern int accept (int __fd, __SOCKADDR_ARG __addr, ^ ttcp.c:355:25: warning: passing argument 2 of ‘getpeername’ from incompatible pointer type [-Wincompatible-pointer-types] if (getpeername(fd, (struct sockaddr_in *) &peer, ^ In file included from ttcp.c:52:0: /usr/include/sys/socket.h:141:12: note: expected ‘struct sockaddr * restrict’ but argument is of type ‘struct sockaddr_in *’ extern int getpeername (int __fd, __SOCKADDR_ARG __addr, ^ ttcp.c:396:15: warning: implicit declaration of function ‘read’ [-Wimplicit-function-declaration] while((cnt=read(0,buf,buflen)) > 0 && ^ ttcp.c:401:8: warning: implicit declaration of function ‘write’ [-Wimplicit-function-declaration] write(1,buf,cnt) == cnt) ^ ttcp.c:438:2: warning: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration] exit(0); ^ ttcp.c:438:2: warning: incompatible implicit declaration of built-in function ‘exit’ ttcp.c:438:2: note: include ‘’ or provide a declaration of ‘exit’ ttcp.c: In function ‘err’: ttcp.c:452:2: warning: incompatible implicit declaration of built-in function ‘exit’ exit(1); ^ ttcp.c:452:2: 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] pattern( cp, cnt ) ^ ttcp.c: In function ‘read_timer’: ttcp.c:555:1: warning: type of ‘len’ defaults to ‘int’ [-Wimplicit-int] read_timer(str,len) ^ ttcp.c:567:8: warning: implicit declaration of function ‘strncpy’ [-Wimplicit-function-declaration] (void)strncpy( str, line, len ); ^ ttcp.c:567:8: warning: incompatible implicit declaration of built-in function ‘strncpy’ ttcp.c:567:8: 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] Nread( fd, buf, count ) ^ ttcp.c: In function ‘Nread’: ttcp.c:755:38: warning: passing argument 5 of ‘recvfrom’ from incompatible pointer type [-Wincompatible-pointer-types] cnt = recvfrom( fd, buf, count, 0, &from, &len ); ^ In file included from ttcp.c:52:0: /usr/include/sys/socket.h:174:16: note: expected ‘struct sockaddr * restrict’ but argument is of type ‘struct sockaddr_in *’ extern ssize_t recvfrom (int __fd, void *__restrict __buf, size_t __n, ^ ttcp.c: At top level: ttcp.c:777:1: warning: return type defaults to ‘int’ [-Wimplicit-int] Nwrite( fd, buf, count ) ^ ttcp.c: In function ‘Nwrite’: ttcp.c:785:36: warning: passing argument 5 of ‘sendto’ from incompatible pointer type [-Wincompatible-pointer-types] cnt = sendto( fd, buf, count, 0, &sinhim, sizeof(sinhim) ); ^ In file included from ttcp.c:52:0: /usr/include/sys/socket.h:163:16: note: expected ‘const struct sockaddr *’ but argument is of type ‘struct sockaddr_in *’ extern ssize_t sendto (int __fd, const void *__buf, size_t __n, ^ ttcp.c: In function ‘delay’: ttcp.c:800:1: warning: type of ‘us’ defaults to ‘int’ [-Wimplicit-int] delay(us) ^ ttcp.c:806:19: warning: passing argument 2 of ‘select’ from incompatible pointer type [-Wincompatible-pointer-types] (void)select( 1, (char *)0, (char *)0, (char *)0, &tv ); ^ In file included from /usr/include/sys/types.h:219:0, from ttcp.c:51: /usr/include/sys/select.h:106:12: note: expected ‘fd_set * restrict {aka struct * restrict}’ but argument is of type ‘char *’ extern int select (int __nfds, fd_set *__restrict __readfds, ^ ttcp.c:806:30: warning: passing argument 3 of ‘select’ from incompatible pointer type [-Wincompatible-pointer-types] (void)select( 1, (char *)0, (char *)0, (char *)0, &tv ); ^ In file included from /usr/include/sys/types.h:219:0, from ttcp.c:51: /usr/include/sys/select.h:106:12: note: expected ‘fd_set * restrict {aka struct * restrict}’ but argument is of type ‘char *’ extern int select (int __nfds, fd_set *__restrict __readfds, ^ ttcp.c:806:41: warning: passing argument 4 of ‘select’ from incompatible pointer type [-Wincompatible-pointer-types] (void)select( 1, (char *)0, (char *)0, (char *)0, &tv ); ^ In file included from /usr/include/sys/types.h:219:0, from ttcp.c:51: /usr/include/sys/select.h:106:12: note: expected ‘fd_set * restrict {aka struct * restrict}’ but argument is of type ‘char *’ extern int select (int __nfds, fd_set *__restrict __readfds, ^ ./ 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 install/ install/slack-desc