[gupnp] [PATCH] use sysinfo.release instead of sysinfo.version



Hi,

GUPnPContext has some code to create a Server string to use in SSDP
announcements. The current code creates something like this:

 Linux/#1 SMP Thu Jan 29 19:24:39 UTC 2009 UPnP/1.0 GUPnP/0.12.6

With the attached patch this is changed to 

 Linux/2.6.27-11-generic UPnP/1.0 GUPnP/0.12.6

That's better, isn't it?


Sven


>From cb54f26bfe7e1c30c1b7dd168c31a3cdcaad9856 Mon Sep 17 00:00:00 2001
From: Sven Neumann <s neumann phase-zero de>
Date: Mon, 30 Mar 2009 13:20:24 +0200
Subject: [PATCH] use sysinfo.release instead of sysinfo.version

---
 libgupnp/gupnp-context.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libgupnp/gupnp-context.c b/libgupnp/gupnp-context.c
index 0e4f726..6df64a5 100644
--- a/libgupnp/gupnp-context.c
+++ b/libgupnp/gupnp-context.c
@@ -98,7 +98,7 @@ make_server_id (void)
 
         return g_strdup_printf ("%s/%s UPnP/1.0 GUPnP/%s",
                                 sysinfo.sysname,
-                                sysinfo.version,
+                                sysinfo.release,
                                 VERSION);
 }
 
-- 
1.5.6.3



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