Skip to contentSkip to conversation

C99 initializers for alpha/thread-info.h

PATCH New Art Haas 1 participant 1 message Feb 27, 2003

lore
Share & tools
lore

Art Haas

author
#0 lore raw

PATCH 1/1 C99 initializers for alpha/thread-info.h

Hi.

This trivial patch switches the file to use C99 initializers.

Art Haas

===== include/asm-alpha/thread_info.h 1.4 vs edited =====

include/asm-alpha/thread_info.h +3 -3
@@ -34,9 +34,9 @@
  */
 #define INIT_THREAD_INFO(tsk)			\
 {						\
-	task:		&tsk,			\
-	exec_domain:	&default_exec_domain,	\
-	addr_limit:	KERNEL_DS,		\
+	.task		= &tsk,			\
+	.exec_domain	= &default_exec_domain,	\
+	.addr_limit	= KERNEL_DS,		\
 	.restart_block = {			\
 		.fn = do_no_restart_syscall,	\
 	},					\
Signature · 3 lines
They that can give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety.
 -- Benjamin Franklin, Historical Review of Pennsylvania, 1759