[PATCH 1/2] Make some function static

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx>
---
 src/dfps.c    | 4 +++-
 src/dfps.h    | 1 -
 src/qxl.h     | 3 ---
 src/qxl_mem.c | 2 +-
 4 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/src/dfps.c b/src/dfps.c
index fe0f09e..7ac9b4d 100644
--- a/src/dfps.c
+++ b/src/dfps.c
@@ -53,6 +53,8 @@ typedef struct _dfps_info_t
     GCPtr       pgc;
 } dfps_info_t;
 
+static void dfps_ticker(void *opaque);
+
 static inline dfps_info_t *dfps_get_info (PixmapPtr pixmap)
 {
 #if HAS_DEVPRIVATEKEYREC
@@ -104,7 +106,7 @@ void dfps_start_ticker(qxl_screen_t *qxl)
     timer_start(qxl->frames_timer, 1000 / qxl->deferred_fps);
 }
 
-void dfps_ticker(void *opaque)
+static void dfps_ticker(void *opaque)
 {
     qxl_screen_t *qxl = (qxl_screen_t *) opaque;
     dfps_info_t *info = NULL;
diff --git a/src/dfps.h b/src/dfps.h
index b5ce88c..0e48dfd 100644
--- a/src/dfps.h
+++ b/src/dfps.h
@@ -23,5 +23,4 @@
  */
 
 void dfps_start_ticker(qxl_screen_t *qxl);
-void dfps_ticker(void *opaque);
 void dfps_set_uxa_functions(qxl_screen_t *qxl, ScreenPtr screen);
diff --git a/src/qxl.h b/src/qxl.h
index 885048c..bfc3b0d 100644
--- a/src/qxl.h
+++ b/src/qxl.h
@@ -582,9 +582,6 @@ struct qxl_mem *  qxl_mem_create       (void                   *base,
 void              qxl_mem_dump_stats   (struct qxl_mem         *mem,
 					const char             *header);
 void              qxl_mem_free_all     (struct qxl_mem         *mem);
-void *            qxl_allocnf          (qxl_screen_t           *qxl,
-					unsigned long           size,
-					const char *            name);
 int		   qxl_garbage_collect (qxl_screen_t *qxl);
 
 void qxl_reset_and_create_mem_slots (qxl_screen_t *qxl);
diff --git a/src/qxl_mem.c b/src/qxl_mem.c
index bed0c1f..5159abd 100644
--- a/src/qxl_mem.c
+++ b/src/qxl_mem.c
@@ -404,7 +404,7 @@ qxl_handle_oom (qxl_screen_t *qxl)
     return qxl_garbage_collect (qxl);
 }
 
-void *
+static void *
 qxl_allocnf (qxl_screen_t *qxl, unsigned long size, const char *name)
 {
     void *result;
-- 
2.9.3

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]