Ver Fonte

timer.c: connect with its published prototypes

* exec/timer.c: Include "timer.h".
* exec/timer.h (corosync_timer_init): Make return type in prototype
match the one in the function definition.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1978 fd59a12c-fef9-0310-b244-a6a79926bd2f
Jim Meyering há 17 anos atrás
pai
commit
59718fb62a
2 ficheiros alterados com 4 adições e 3 exclusões
  1. 1 0
      exec/timer.c
  2. 3 3
      exec/timer.h

+ 1 - 0
exec/timer.c

@@ -79,6 +79,7 @@
 #include "sync.h"
 #include "tlist.h"
 #include "util.h"
+#include "timer.h"
 
 #define SERVER_BACKLOG 5
 

+ 3 - 3
exec/timer.h

@@ -1,12 +1,12 @@
 /*
- * Copyright (c) 2006-2007 Red Hat, Inc.
+ * Copyright (c) 2006-2007, 2009 Red Hat, Inc.
  *
  * All rights reserved.
  *
  * Author: Steven Dake (sdake@redhat.com)
  *
  * This software licensed under BSD license, the text of which follows:
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions are met:
  *
@@ -37,7 +37,7 @@
 
 typedef void * corosync_timer_handle;
 
-extern void corosync_timer_init (
+extern int corosync_timer_init (
         void (*serialize_lock) (void),
         void (*serialize_unlock) (void),
 	int sched_priority);