Use build-time api version
authorMyhailo Danylenko <isbear@ukrpost.net>
Sun, 22 Jul 2012 15:59:37 +0300
changeset 14 3f6d549befa8
parent 13 01de665a7de5
child 15 6222baf5dccc
Use build-time api version
uptime.c
--- a/uptime.c	Sat May 07 19:15:19 2011 +0300
+++ b/uptime.c	Sun Jul 22 15:59:37 2012 +0300
@@ -33,9 +33,9 @@
 
 #define DESCRIPTION ( "Shows mcabber uptime." )
 
-module_info_t info_uptime_experimental = {
-	.branch      = "experimental",
-	.api         = 34,
+module_info_t info_uptime = {
+	.branch      = MCABBER_BRANCH,
+	.api         = MCABBER_API_VERSION,
 	.version     = PROJECT_VERSION,
 	.description = DESCRIPTION,
 	.requires    = NULL,
@@ -44,17 +44,6 @@
 	.next        = NULL,
 };
 
-module_info_t info_uptime = {
-	.branch      = "dev",
-	.api         = 20,
-	.version     = PROJECT_VERSION,
-	.description = DESCRIPTION,
-	.requires    = NULL,
-	.init        = NULL,
-	.uninit      = NULL,
-	.next        = &info_uptime_experimental,
-};
-
 static gpointer uptime_cmid = NULL;
 
 guint hz = 0;