From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH obexd 6/8] filesystem: remove unnecessary includes
Date: Wed, 2 Nov 2011 15:09:53 +0200 [thread overview]
Message-ID: <1320239395-29819-6-git-send-email-luiz.dentz@gmail.com> (raw)
In-Reply-To: <1320239395-29819-1-git-send-email-luiz.dentz@gmail.com>
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
---
plugins/filesystem.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/plugins/filesystem.c b/plugins/filesystem.c
index 4106c80..12ca209 100644
--- a/plugins/filesystem.c
+++ b/plugins/filesystem.c
@@ -48,9 +48,7 @@
#include "obexd.h"
#include "plugin.h"
#include "log.h"
-#include "obex.h"
#include "mimetype.h"
-#include "service.h"
#include "filesystem.h"
#define EOL_CHARS "\n"
@@ -79,7 +77,9 @@
" modified=\"%s\" mem-type=\"DEV\"" \
" created=\"%s\"/>" EOL_CHARS
-static const uint8_t FTP_TARGET[TARGET_SIZE] = {
+#define FTP_TARGET_SIZE 16
+
+static const uint8_t FTP_TARGET[FTP_TARGET_SIZE] = {
0xF9, 0xEC, 0x7B, 0xC4, 0x95, 0x3C, 0x11, 0xD2,
0x98, 0x4E, 0x52, 0x54, 0x00, 0xDC, 0x9E, 0x09 };
@@ -669,7 +669,7 @@ static struct obex_mime_type_driver file = {
static struct obex_mime_type_driver capability = {
.target = FTP_TARGET,
- .target_size = TARGET_SIZE,
+ .target_size = FTP_TARGET_SIZE,
.mimetype = "x-obex/capability",
.open = capability_open,
.close = capability_close,
@@ -678,7 +678,7 @@ static struct obex_mime_type_driver capability = {
static struct obex_mime_type_driver folder = {
.target = FTP_TARGET,
- .target_size = TARGET_SIZE,
+ .target_size = FTP_TARGET_SIZE,
.mimetype = "x-obex/folder-listing",
.open = folder_open,
.close = string_free,
@@ -687,7 +687,7 @@ static struct obex_mime_type_driver folder = {
static struct obex_mime_type_driver pcsuite = {
.target = FTP_TARGET,
- .target_size = TARGET_SIZE,
+ .target_size = FTP_TARGET_SIZE,
.who = PCSUITE_WHO,
.who_size = PCSUITE_WHO_SIZE,
.mimetype = "x-obex/folder-listing",
--
1.7.6.4
next prev parent reply other threads:[~2011-11-02 13:09 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-02 13:09 [PATCH obexd 1/8] Remove config.h from src/obex.h Luiz Augusto von Dentz
2011-11-02 13:09 ` [PATCH obexd 2/8] Removed unused fields of obex_server Luiz Augusto von Dentz
2011-11-02 13:09 ` [PATCH obexd 3/8] Remove options per server Luiz Augusto von Dentz
2011-11-02 13:09 ` [PATCH obexd 4/8] Move secure flag to service driver Luiz Augusto von Dentz
2011-11-02 13:09 ` [PATCH obexd 5/8] Make obex_server_init to initialized all services registered Luiz Augusto von Dentz
2011-11-02 13:09 ` Luiz Augusto von Dentz [this message]
2011-11-02 13:09 ` [PATCH obexd 7/8] ftp: remove pcsuite code Luiz Augusto von Dentz
2011-11-02 13:09 ` [PATCH obexd 8/8] ftp: fix coding style Luiz Augusto von Dentz
2011-11-03 8:33 ` [PATCH obexd 1/8] Remove config.h from src/obex.h Johan Hedberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1320239395-29819-6-git-send-email-luiz.dentz@gmail.com \
--to=luiz.dentz@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox