changeset 73574:848513456fe7

(init_service_handler): Make variable `specs' static const.
author YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
date Tue, 31 Oct 2006 08:32:25 +0000
parents 4d143b423b75
children c39e3aff703e
files src/macselect.c
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/macselect.c	Tue Oct 31 08:32:08 2006 +0000
+++ b/src/macselect.c	Tue Oct 31 08:32:25 2006 +0000
@@ -1616,10 +1616,11 @@
 void
 init_service_handler ()
 {
-  EventTypeSpec specs[] = {{kEventClassService, kEventServiceGetTypes},
-			   {kEventClassService, kEventServiceCopy},
-			   {kEventClassService, kEventServicePaste},
-			   {kEventClassService, kEventServicePerform}};
+  static const EventTypeSpec specs[] =
+    {{kEventClassService, kEventServiceGetTypes},
+     {kEventClassService, kEventServiceCopy},
+     {kEventClassService, kEventServicePaste},
+     {kEventClassService, kEventServicePerform}};
   InstallApplicationEventHandler (NewEventHandlerUPP (mac_handle_service_event),
 				  GetEventTypeCount (specs), specs, NULL, NULL);
 }