You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tried giving this a go on OSX 10.9, but fails out.
Help?
Thanks,
rm -f dbd dbd.exe .o core
gcc -Wall -Wshadow -O2 -m32 -march=i386 -o dbd pel.c aes.c sha1.c doexec.c dbd.c -s
In file included from doexec.c:4:
./doexec_unix.h:164:52: warning: passing 'char [128]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
if (pel_recv_msg(socketfd, buf, &cnt) != PEL_SUCCESS) {
^~~
./pel.h:27:50: note: passing argument to parameter 'msg' here
int pel_recv_msg( int sockfd, unsigned char *msg, int *length );
^
In file included from doexec.c:4:
./doexec_unix.h:199:52: warning: passing 'char [128]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
if (pel_send_msg(socketfd, buf, cnt) != PEL_SUCCESS) {
^~~
./pel.h:26:50: note: passing argument to parameter 'msg' here
int pel_send_msg( int sockfd, unsigned char *msg, int length );
^
2 warnings generated.
In file included from dbd.c:246:
./misc.h:150:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
if (!(idstart = strstr(string, Id_string))) {
^~~~~~
/usr/include/string.h:89:26: note: passing argument to parameter here
char *strstr(const char *, const char *);
^
In file included from dbd.c:247:
./readwrite.h:223:50: warning: passing 'char [128]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
if (pel_send_msg(peersd, stackbuf, strlen(stackbuf)) != PEL_SUCCESS) {
^~~~~~~~
./pel.h:26:50: note: passing argument to parameter 'msg' here
int pel_send_msg( int sockfd, unsigned char *msg, int length );
^
In file included from dbd.c:247:
./readwrite.h:230:46: warning: passing 'char [128]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
if (pel_send_msg(peersd, buf, cnt) != PEL_SUCCESS) {
^~~
./pel.h:26:50: note: passing argument to parameter 'msg' here
int pel_send_msg( int sockfd, unsigned char *msg, int length );
^
In file included from dbd.c:247:
./readwrite.h:250:46: warning: passing 'char [128]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
if (pel_recv_msg(peersd, buf, &cnt) != PEL_SUCCESS) {
^~~
./pel.h:27:50: note: passing argument to parameter 'msg' here
int pel_recv_msg( int sockfd, unsigned char *msg, int *length );
^
In file included from dbd.c:262:
./socket_code.h:247:58: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign]
if ((clisd = accept(sd, (struct sockaddr) &cliAddr, &clilen)) < 0) {
^~~~~~~
/usr/include/sys/socket.h:555:69: note: passing argument to parameter here
int accept(int, struct sockaddr * __restrict, socklen_t * __restrict)
^
In file included from dbd.c:262:
./socket_code.h:291:61: warning: passing 'int ' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign]
if (getsockname(clisd, (struct sockaddr) &gsnAddr, &gsnlen)) {
^~~~~~~
/usr/include/sys/socket.h:561:74: note: passing argument to parameter here
int getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict)
^
The text was updated successfully, but these errors were encountered:
Tried giving this a go on OSX 10.9, but fails out.
Help?
Thanks,
rm -f dbd dbd.exe .o core
gcc -Wall -Wshadow -O2 -m32 -march=i386 -o dbd pel.c aes.c sha1.c doexec.c dbd.c -s
In file included from doexec.c:4:
./doexec_unix.h:164:52: warning: passing 'char [128]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
if (pel_recv_msg(socketfd, buf, &cnt) != PEL_SUCCESS) {
^~~
./pel.h:27:50: note: passing argument to parameter 'msg' here
int pel_recv_msg( int sockfd, unsigned char *msg, int *length );
^
In file included from doexec.c:4:
./doexec_unix.h:199:52: warning: passing 'char [128]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
if (pel_send_msg(socketfd, buf, cnt) != PEL_SUCCESS) {
^~~
./pel.h:26:50: note: passing argument to parameter 'msg' here
int pel_send_msg( int sockfd, unsigned char *msg, int length );
^
2 warnings generated.
In file included from dbd.c:246:
./misc.h:150:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
if (!(idstart = strstr(string, Id_string))) {
^~~~~~
/usr/include/string.h:89:26: note: passing argument to parameter here
char *strstr(const char *, const char *);
^
In file included from dbd.c:247:
./readwrite.h:223:50: warning: passing 'char [128]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
if (pel_send_msg(peersd, stackbuf, strlen(stackbuf)) != PEL_SUCCESS) {
^~~~~~~~
./pel.h:26:50: note: passing argument to parameter 'msg' here
int pel_send_msg( int sockfd, unsigned char *msg, int length );
^
In file included from dbd.c:247:
./readwrite.h:230:46: warning: passing 'char [128]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
if (pel_send_msg(peersd, buf, cnt) != PEL_SUCCESS) {
^~~
./pel.h:26:50: note: passing argument to parameter 'msg' here
int pel_send_msg( int sockfd, unsigned char *msg, int length );
^
In file included from dbd.c:247:
./readwrite.h:250:46: warning: passing 'char [128]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
if (pel_recv_msg(peersd, buf, &cnt) != PEL_SUCCESS) {
^~~
./pel.h:27:50: note: passing argument to parameter 'msg' here
int pel_recv_msg( int sockfd, unsigned char *msg, int *length );
^
In file included from dbd.c:262:
./socket_code.h:247:58: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign]
if ((clisd = accept(sd, (struct sockaddr) &cliAddr, &clilen)) < 0) {
^~~~~~~
/usr/include/sys/socket.h:555:69: note: passing argument to parameter here
int accept(int, struct sockaddr * __restrict, socklen_t * __restrict)
^
In file included from dbd.c:262:
./socket_code.h:291:61: warning: passing 'int ' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign]
if (getsockname(clisd, (struct sockaddr) &gsnAddr, &gsnlen)) {
^~~~~~~
/usr/include/sys/socket.h:561:74: note: passing argument to parameter here
int getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict)
^
The text was updated successfully, but these errors were encountered: