You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2021/02/19 10:26:47 UTC
[GitHub] [incubator-nuttx] xiaoxiang781216 commented on a change in pull request #2872: Fix pthread cmdline issue
xiaoxiang781216 commented on a change in pull request #2872:
URL: https://github.com/apache/incubator-nuttx/pull/2872#discussion_r579081486
##########
File path: include/pthread.h
##########
@@ -195,11 +195,8 @@
* error number in errno. This is an inconsistency with the pthread interfaces.
*/
-#define pthread_setname_np(thread, name) \
- prctl((int)PR_SET_NAME_EXT, (char*)name, (int)thread)
-
-#define pthread_getname_np(thread, name) \
- prctl((int)PR_GET_NAME_EXT, (char*)name, (int)thread)
+#define pthread_setname_np(thread, name) prctl(PR_SET_NAME_EXT, name, thread)
+#define pthread_getname_np(thread, name) prctl(PR_GET_NAME_EXT, name, thread)
Review comment:
Ok, I will drop the last commit from PR
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org