--- plugins/ftp.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/ftp.c b/plugins/ftp.c index e0a3b97..c3a4193 100644 --- a/plugins/ftp.c +++ b/plugins/ftp.c @@ -93,6 +93,7 @@ </record>" #define PCSUITE_CHANNEL 24 +#define PCSUITE_WHO_SIZE 8 #define PCSUITE_RECORD "<?xml version=\"1.0\" encoding=\"UTF-8\" ?> \ <record> \ <attribute id=\"0x0001\"> \ @@ -140,9 +141,8 @@ static const guint8 FTP_TARGET[TARGET_SIZE] = { 0xF9, 0xEC, 0x7B, 0xC4, 0x95, 0x3C, 0x11, 0xD2, 0x98, 0x4E, 0x52, 0x54, 0x00, 0xDC, 0x9E, 0x09 }; -static const guint8 PCSUITE_TARGET[TARGET_SIZE] = { - 0x00, 0x00, 0x50, 0x05, 0x00, 0x00, 0x10, 0x00, - 0x80, 0x00, 0x00, 0x02, 0xEE, 0x00, 0x00, 0x01 }; +static const guint8 PCSUITE_WHO[PCSUITE_WHO_SIZE] = { + 'P','C',' ','S','u','i','t','e' }; static gint get_by_type(struct obex_session *os, gchar *type, size_t *size) { @@ -464,8 +464,8 @@ struct obex_service_driver pcsuite = { .record = PCSUITE_RECORD, .target = FTP_TARGET, .target_size = TARGET_SIZE, - .who = PCSUITE_TARGET, - .who_size = TARGET_SIZE, + .who = PCSUITE_WHO, + .who_size = PCSUITE_WHO_SIZE, .connect = ftp_connect, .get = ftp_get, .put = ftp_put, -- 1.6.3.3 -- Luiz Augusto von Dentz Computer Engineer
From 40334d063fb34ef6085897ad698d83d5a0803551 Mon Sep 17 00:00:00 2001 From: Luiz Augusto Von Dentz <luiz.dentz-von@xxxxxxxxx> Date: Mon, 22 Feb 2010 17:36:51 +0200 Subject: [PATCH 2/2] Fix pcsuite WHO header --- plugins/ftp.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/ftp.c b/plugins/ftp.c index e0a3b97..c3a4193 100644 --- a/plugins/ftp.c +++ b/plugins/ftp.c @@ -93,6 +93,7 @@ </record>" #define PCSUITE_CHANNEL 24 +#define PCSUITE_WHO_SIZE 8 #define PCSUITE_RECORD "<?xml version=\"1.0\" encoding=\"UTF-8\" ?> \ <record> \ <attribute id=\"0x0001\"> \ @@ -140,9 +141,8 @@ static const guint8 FTP_TARGET[TARGET_SIZE] = { 0xF9, 0xEC, 0x7B, 0xC4, 0x95, 0x3C, 0x11, 0xD2, 0x98, 0x4E, 0x52, 0x54, 0x00, 0xDC, 0x9E, 0x09 }; -static const guint8 PCSUITE_TARGET[TARGET_SIZE] = { - 0x00, 0x00, 0x50, 0x05, 0x00, 0x00, 0x10, 0x00, - 0x80, 0x00, 0x00, 0x02, 0xEE, 0x00, 0x00, 0x01 }; +static const guint8 PCSUITE_WHO[PCSUITE_WHO_SIZE] = { + 'P','C',' ','S','u','i','t','e' }; static gint get_by_type(struct obex_session *os, gchar *type, size_t *size) { @@ -464,8 +464,8 @@ struct obex_service_driver pcsuite = { .record = PCSUITE_RECORD, .target = FTP_TARGET, .target_size = TARGET_SIZE, - .who = PCSUITE_TARGET, - .who_size = TARGET_SIZE, + .who = PCSUITE_WHO, + .who_size = PCSUITE_WHO_SIZE, .connect = ftp_connect, .get = ftp_get, .put = ftp_put, -- 1.6.3.3