PR22348, conflicting global vars in crx and cr16
[deliverable/binutils-gdb.git] / gdb / observer.c
index 6217c6b14a2694acc3e49de1b4ea2cc7bd7c464d..c461cda288d67ea51c3c7ae3f9deaabeeb0f5dc8 100644 (file)
@@ -1,6 +1,6 @@
 /* GDB Notifications to Observers.
 
-   Copyright (C) 2003-2014 Free Software Foundation, Inc.
+   Copyright (C) 2003-2017 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -89,9 +89,9 @@ struct observer_list
 static struct observer_list *
 xalloc_observer_list_node (void)
 {
-  struct observer_list *node = XMALLOC (struct observer_list);
+  struct observer_list *node = XNEW (struct observer_list);
 
-  node->observer = XMALLOC (struct observer);
+  node->observer = XNEW (struct observer);
   return node;
 }
 
@@ -181,11 +181,6 @@ int observer_test_first_observer = 0;
 int observer_test_second_observer = 0;
 int observer_test_third_observer = 0;
 
-/* Provide prototypes to silence -Wmissing-prototypes.  */
-extern void observer_test_first_notification_function (int arg);
-extern void observer_test_second_notification_function (int arg);
-extern void observer_test_third_notification_function (int arg);
-
 void
 observer_test_first_notification_function (int arg)
 {
@@ -204,8 +199,6 @@ observer_test_third_notification_function (int arg)
   observer_test_third_observer++;
 }
 
-extern initialize_file_ftype _initialize_observer; /* -Wmissing-prototypes */
-
 void
 _initialize_observer (void)
 {
This page took 0.026818 seconds and 4 git commands to generate.