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
~/dump/how-to-receive-a-packet$ ./build.sh
udpclient.c:31:6: error: conflicting types for 'gettid'
long gettid() { return syscall(SYS_gettid); }
^
/usr/include/x86_64-linux-gnu/bits/unistd_ext.h:34:16: note: previous declaration is here
extern __pid_t gettid (void) __THROW;
^
udpclient.c:73:16: warning: format specifies type 'long' but the argument has type '__pid_t' (aka 'int') [-Wformat]
getpid(), gettid(), packet_no);
^~~~~~~~
/usr/include/x86_64-linux-gnu/bits/stdio2.h:61:31: note: expanded from macro 'snprintf'
__glibc_objsize (str), __VA_ARGS__)
^~~~~~~~~~~
1 warning and 1 error generated.
Here was a error, and no binary file was.
I'm ask how to fix it in Copilot, and I found worked decision.
After that almost all is fine:
./build.sh
udpclient.c:73:16: warning: format specifies type 'long' but the argument has type '__pid_t' (aka 'int') [-Wformat]
getpid(), gettid(), packet_no);
^~~~~~~~
/usr/include/x86_64-linux-gnu/bits/stdio2.h:61:31: note: expanded from macro 'snprintf'
__glibc_objsize (str), __VA_ARGS__)
^~~~~~~~~~~
1 warning generated.
Here was a error, and no binary file was.
I'm ask how to fix it in Copilot, and I found worked decision.
After that almost all is fine:
https://sl.bing.net/jEm33FtTJv2
The text was updated successfully, but these errors were encountered: