[haiku-commits] r41966 - in haiku/branches/developer/bonefish/signals: headers/private/kernel src/system/kernel

  • From: ingo_weinhold@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 6 Jun 2011 16:15:22 +0200 (CEST)

Author: bonefish
Date: 2011-06-06 16:15:22 +0200 (Mon, 06 Jun 2011)
New Revision: 41966
Changeset: https://dev.haiku-os.org/changeset/41966

Modified:
   haiku/branches/developer/bonefish/signals/headers/private/kernel/thread.h
   haiku/branches/developer/bonefish/signals/src/system/kernel/thread.cpp
Log:
ThreadCreationAttributes::InitFromUserAttributes(): Made "userAttribute"
parameter const.


Modified: 
haiku/branches/developer/bonefish/signals/headers/private/kernel/thread.h
===================================================================
--- haiku/branches/developer/bonefish/signals/headers/private/kernel/thread.h   
2011-06-06 12:04:31 UTC (rev 41965)
+++ haiku/branches/developer/bonefish/signals/headers/private/kernel/thread.h   
2011-06-06 14:15:22 UTC (rev 41966)
@@ -58,7 +58,8 @@
                                                                        team_id 
team = -1, Thread* thread = NULL);
 
                        status_t                        InitFromUserAttributes(
-                                                                       
thread_creation_attributes* userAttributes,
+                                                                       const 
thread_creation_attributes*
+                                                                               
userAttributes,
                                                                        char* 
nameBuffer);
 };
 

Modified: haiku/branches/developer/bonefish/signals/src/system/kernel/thread.cpp
===================================================================
--- haiku/branches/developer/bonefish/signals/src/system/kernel/thread.cpp      
2011-06-06 12:04:31 UTC (rev 41965)
+++ haiku/branches/developer/bonefish/signals/src/system/kernel/thread.cpp      
2011-06-06 14:15:22 UTC (rev 41966)
@@ -546,7 +546,7 @@
 */
 status_t
 ThreadCreationAttributes::InitFromUserAttributes(
-       thread_creation_attributes* userAttributes, char* nameBuffer)
+       const thread_creation_attributes* userAttributes, char* nameBuffer)
 {
        if (userAttributes == NULL || !IS_USER_ADDRESS(userAttributes)
                || user_memcpy((thread_creation_attributes*)this, 
userAttributes,


Other related posts:

  • » [haiku-commits] r41966 - in haiku/branches/developer/bonefish/signals: headers/private/kernel src/system/kernel - ingo_weinhold