From: short <> Date: Wed, 9 Jun 2004 06:20:30 +0000 (+0000) Subject: Fix platform identifier in "PROGRAM_VERSION" of the packet to be "$_-gnome". X-Git-Tag: udpgate-1_0_1~5 X-Git-Url: http://git.jankratochvil.net/?p=udpgate.git;a=commitdiff_plain;h=2d1519a85291001a24283ebc9652a01bcab2767a;hp=bc6e4a7f3c734d96f0e772b95da6e6fb0912f10d Fix platform identifier in "PROGRAM_VERSION" of the packet to be "$_-gnome". --- diff --git a/src/packet.c b/src/packet.c index 0e71136..5b72829 100644 --- a/src/packet.c +++ b/src/packet.c @@ -77,6 +77,9 @@ #include "main.h" /* for optarg_verbose */ +#define PACKET_VERSION_STRING (VERSION "-gnome") + + static void packet_assembly_guint32(GString *gstring,guint32 value_guint32) { guint32 value_guint32_htonl; @@ -187,7 +190,7 @@ GString *gstring; g_string_append(gstring,PACKET_HEADER); - packet_assembly_foreach(GINT_TO_POINTER(PACKET_ELEM_TYPE_PROGRAM_VERSION),VERSION,gstring); + packet_assembly_foreach(GINT_TO_POINTER(PACKET_ELEM_TYPE_PROGRAM_VERSION),PACKET_VERSION_STRING,gstring); g_hash_table_foreach( values, /* hash_table */ (GHFunc)packet_assembly_foreach, /* func */