[syslinux:master] hdt: Adding IRC channel in project info

syslinux-bot for Erwan Velu erwan.velu at free.fr
Sun Feb 6 14:07:14 PST 2011


Commit-ID:  fe409fb01eb784df5ce8a1e54a0a1ef6aaca063c
Gitweb:     http://syslinux.zytor.com/commit/fe409fb01eb784df5ce8a1e54a0a1ef6aaca063c
Author:     Erwan Velu <erwan.velu at free.fr>
AuthorDate: Mon, 7 Dec 2009 16:02:13 +0100
Committer:  Erwan Velu <erwan.velu at free.fr>
CommitDate: Mon, 7 Dec 2009 16:02:13 +0100

hdt: Adding IRC channel in project info

Impact: visual

Let's give the irc channel info in our about menu


---
 com32/hdt/hdt-cli-hdt.c    |    1 +
 com32/hdt/hdt-menu-about.c |    9 +++++++--
 com32/hdt/hdt.h            |    1 +
 3 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/com32/hdt/hdt-cli-hdt.c b/com32/hdt/hdt-cli-hdt.c
index 47cef66..fc0d7f3 100644
--- a/com32/hdt/hdt-cli-hdt.c
+++ b/com32/hdt/hdt-cli-hdt.c
@@ -227,6 +227,7 @@ void main_show_hdt(int argc __unused, char **argv __unused,
     more_printf(" Product        : %s\n", PRODUCT_NAME);
     more_printf(" Version        : %s (%s)\n", VERSION, CODENAME);
     more_printf(" Website        : %s\n", WEBSITE_URL);
+    more_printf(" IRC Channel    : %s\n", IRC_CHANNEL);
     more_printf(" Mailing List   : %s\n", CONTACT);
     more_printf(" Project Leader : %s\n", AUTHOR);
     more_printf(" Core Developer : %s\n", CORE_DEVELOPER);
diff --git a/com32/hdt/hdt-menu-about.c b/com32/hdt/hdt-menu-about.c
index 1e8a6ff..c88e308 100644
--- a/com32/hdt/hdt-menu-about.c
+++ b/com32/hdt/hdt-menu-about.c
@@ -52,7 +52,12 @@ void compute_aboutmenu(struct s_my_menu *menu)
     menu->items_count++;
 
     snprintf(buffer, sizeof buffer, "Website        : %s", WEBSITE_URL);
-    snprintf(statbuffer, sizeof statbuffer, "Website : %s",WEBSITE_URL); 
+    snprintf(statbuffer, sizeof statbuffer, "Website : %s",WEBSITE_URL);
+    add_item(buffer, statbuffer, OPT_INACTIVE, NULL, 0);
+    menu->items_count++;
+
+    snprintf(buffer, sizeof buffer, "IRC Channel    : %s", IRC_CHANNEL);
+    snprintf(statbuffer, sizeof statbuffer, "IRC Channel : %s",IRC_CHANNEL);
     add_item(buffer, statbuffer, OPT_INACTIVE, NULL, 0);
     menu->items_count++;
 
@@ -67,7 +72,7 @@ void compute_aboutmenu(struct s_my_menu *menu)
     snprintf(statbuffer, sizeof statbuffer, "Project Leader  : %s", AUTHOR);
     add_item(buffer, statbuffer, OPT_INACTIVE, NULL, 0);
     menu->items_count++;
-    
+
     snprintf(buffer, sizeof buffer, "Core Developer : %s", CORE_DEVELOPER);
     snprintf(statbuffer, sizeof statbuffer, "Core Developer  : %s",
 	     CORE_DEVELOPER);
diff --git a/com32/hdt/hdt.h b/com32/hdt/hdt.h
index 9cd74cb..bdd9e99 100644
--- a/com32/hdt/hdt.h
+++ b/com32/hdt/hdt.h
@@ -38,6 +38,7 @@
 #define NB_CONTRIBUTORS 3
 #define CONTRIBUTORS {"Sebastien Gonzalve (Patches)", "Gert Hulselmans (Tests)", "Alexander Andino (Design)"}
 #define WEBSITE_URL "http://hdt-project.org"
+#define IRC_CHANNEL "#hdt on freenode"
 
 #define ATTR_PACKED __attribute__((packed))
 



More information about the Syslinux-commits mailing list