]> git.eshelyaron.com Git - emacs.git/commitdiff
(init_service_handler): Make variable `specs' static
authorYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Tue, 31 Oct 2006 08:32:25 +0000 (08:32 +0000)
committerYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Tue, 31 Oct 2006 08:32:25 +0000 (08:32 +0000)
const.

src/macselect.c

index fd72bd3cb14c7c0beca9878b635ac3f7e897c2d6..7a952f88367d82407387efe27a5b611fd5d3da17 100644 (file)
@@ -1616,10 +1616,11 @@ remove_drag_handler (window)
 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);
 }