Luiz Augusto von Dentz | 1 Jun 2011 12:32
Picon

Re: [PATCH 1/2] Fix build errors on obex_test tool when using gcc 4.6

Hi Hendrik,

On Fri, May 27, 2011 at 2:04 PM, Hendrik Sattler
<post <at> hendrik-sattler.de> wrote:
> Am Freitag, 27. Mai 2011, 09:54:13 schrieb Luiz Augusto von Dentz:
>> > Note that those are build warnings, not build errors (except when using
>> > maintainer mode).
>>
>> Which is the whole point to force fixing and not just ignore them.
>
> Your commit message is wrong, that's what I meant!

I did rebase your changes on top of my build fixes here:
git://gitorious.org/~vudentz/openobex/vudentz-clone.git

If you are ok, I will resend my 2 build fixes again. I also did a
quick review on the other changes and noticed at least one use of c++
comment style '//' and missing note about action command support on
ChangeLog, can you fix those? And please lets be more careful with
codestyle, there are some files with space mixed with tabs and a lot
of empty likes with tabs.

If those issues are fixed we can do 2.0 release.

--

-- 
Luiz Augusto von Dentz
Computer Engineer

------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger. 
(Continue reading)

Hendrik Sattler | 1 Jun 2011 13:11
Picon

Re: [PATCH 1/2] Fix build errors on obex_test tool when using gcc 4.6

Zitat von Luiz Augusto von Dentz <luiz.dentz <at> gmail.com>:

> Hi Hendrik,
>
> On Fri, May 27, 2011 at 2:04 PM, Hendrik Sattler
> <post <at> hendrik-sattler.de> wrote:
>> Am Freitag, 27. Mai 2011, 09:54:13 schrieb Luiz Augusto von Dentz:
>>> > Note that those are build warnings, not build errors (except when using
>>> > maintainer mode).
>>>
>>> Which is the whole point to force fixing and not just ignore them.
>>
>> Your commit message is wrong, that's what I meant!
>
> I did rebase your changes on top of my build fixes here:
> git://gitorious.org/~vudentz/openobex/vudentz-clone.git
>
> If you are ok, I will resend my 2 build fixes again. I also did a
> quick review on the other changes and noticed at least one use of c++
> comment style '//'

Citing from the ISO 9899-1999 (C99) standard:
"6.4.9 Comments
1 Except within a character constant, a string literal, or a comment,  
the characters /* introduce a comment. The contents of such a comment  
are examined only to identify multibyte characters and to find the  
characters */ that terminate it.

2 Except within a character constant, a string literal, or a comment,  
the characters // introduce a comment that includes all multibyte  
(Continue reading)

Luiz Augusto von Dentz | 2 Jun 2011 16:42
Picon

Re: [PATCH 1/2] Fix build errors on obex_test tool when using gcc 4.6

Hi Hendrik,

On Wed, Jun 1, 2011 at 2:11 PM, Hendrik Sattler <post <at> hendrik-sattler.de> wrote:
> Zitat von Luiz Augusto von Dentz <luiz.dentz <at> gmail.com>:
>
>> Hi Hendrik,
>>
>> On Fri, May 27, 2011 at 2:04 PM, Hendrik Sattler
>> <post <at> hendrik-sattler.de> wrote:
>>> Am Freitag, 27. Mai 2011, 09:54:13 schrieb Luiz Augusto von Dentz:
>>>> > Note that those are build warnings, not build errors (except when using
>>>> > maintainer mode).
>>>>
>>>> Which is the whole point to force fixing and not just ignore them.
>>>
>>> Your commit message is wrong, that's what I meant!
>>
>> I did rebase your changes on top of my build fixes here:
>> git://gitorious.org/~vudentz/openobex/vudentz-clone.git
>>
>> If you are ok, I will resend my 2 build fixes again. I also did a
>> quick review on the other changes and noticed at least one use of c++
>> comment style '//'
>
> Citing from the ISO 9899-1999 (C99) standard:
> "6.4.9 Comments
> 1 Except within a character constant, a string literal, or a comment,
> the characters /* introduce a comment. The contents of such a comment
> are examined only to identify multibyte characters and to find the
> characters */ that terminate it.
(Continue reading)

Luiz Augusto von Dentz | 2 Jun 2011 16:44
Picon

[PATCH 1/2] Fix build errors on obex_test tool when using gcc 4.6

From: Luiz Augusto von Dentz <luiz.von.dentz <at> intel.com>

obex_test_client.c: In function ‘push_client’:
obex_test_client.c:229:6: error: variable ‘num’ set but not used
obex_test_client.c: In function ‘put_client’:
obex_test_client.c:290:6: error: variable ‘num’ set but not used
obex_test_client.c: In function ‘get_client’:
obex_test_client.c:347:6: error: variable ‘num’ set but not used
obex_test_client.c: In function ‘setpath_client’:
obex_test_client.c:418:6: error: variable ‘num’ set but not used
cc1: all warnings being treated as errors
---
 apps/obex_test/obex_test_client.c |   31 +++++++++++++++++++++++++++----
 1 files changed, 27 insertions(+), 4 deletions(-)

diff --git a/apps/obex_test/obex_test_client.c b/apps/obex_test/obex_test_client.c
index 0bf5d42..739f04a 100644
--- a/apps/obex_test/obex_test_client.c
+++ b/apps/obex_test/obex_test_client.c
 <at>  <at>  -234,7 +234,13  <at>  <at>  void push_client(obex_t *handle)
 	int file_size;

 	printf("PUSH filename> ");
-	num = scanf("%s", fname);
+	memset(fname, 0, sizeof(fname));
+	num = scanf("%199c", fname);
+	if (num != 1) {
+		perror("scanf");
+		return;
+	}
(Continue reading)

Luiz Augusto von Dentz | 2 Jun 2011 16:44
Picon

[PATCH 2/2] Fix build errors on ircp tool when using gcc 4.6

From: Luiz Augusto von Dentz <luiz.von.dentz <at> intel.com>

ircp_server.c: In function ‘ircp_srv_receive’:
ircp_server.c:303:1: error: ISO C90 forbids mixed declarations and code
ircp_server.c: In function ‘ircp_srv_recv’:
ircp_server.c:346:6: error: variable ‘err’ set but not used
ircp_server.c: In function ‘ircp_srv_receive’:
ircp_server.c:369:1: error: expected declaration or statement at end of input
ircp_server.c:369:1: error: control reaches end of non-void function
cc1: all warnings being treated as errors
---
 apps/ircp/ircp_client.c |    5 +++++
 apps/ircp/ircp_server.c |   11 +++++++++--
 2 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/apps/ircp/ircp_client.c b/apps/ircp/ircp_client.c
index 7f10d0c..1acd4a8 100644
--- a/apps/ircp/ircp_client.c
+++ b/apps/ircp/ircp_client.c
 <at>  <at>  -395,6 +395,11  <at>  <at>  int ircp_put(ircp_client_t *cli, char *name)
 		char *dirname;
 		
 		err = chdir(name);
+		if (err < 0) {
+			perror("chdir:");
+			return -1;
+		}
+
 		name = ".";
 		
(Continue reading)

Luiz Augusto von Dentz | 3 Jun 2011 09:24
Picon

Re: [PATCH 1/2] Fix build errors on obex_test tool when using gcc 4.6

Hi Hendrik,

On Thu, Jun 2, 2011 at 5:42 PM, Luiz Augusto von Dentz
<luiz.dentz <at> gmail.com> wrote:
> Hi Hendrik,
>
> On Wed, Jun 1, 2011 at 2:11 PM, Hendrik Sattler <post <at> hendrik-sattler.de> wrote:
>> Zitat von Luiz Augusto von Dentz <luiz.dentz <at> gmail.com>:
>>
>>> Hi Hendrik,
>>>
>>> On Fri, May 27, 2011 at 2:04 PM, Hendrik Sattler
>>> <post <at> hendrik-sattler.de> wrote:
>>>> Am Freitag, 27. Mai 2011, 09:54:13 schrieb Luiz Augusto von Dentz:
>>>>> > Note that those are build warnings, not build errors (except when using
>>>>> > maintainer mode).
>>>>>
>>>>> Which is the whole point to force fixing and not just ignore them.
>>>>
>>>> Your commit message is wrong, that's what I meant!
>>>
>>> I did rebase your changes on top of my build fixes here:
>>> git://gitorious.org/~vudentz/openobex/vudentz-clone.git
>>>
>>> If you are ok, I will resend my 2 build fixes again. I also did a
>>> quick review on the other changes and noticed at least one use of c++
>>> comment style '//'
>>
>> Citing from the ISO 9899-1999 (C99) standard:
>> "6.4.9 Comments
(Continue reading)

Hendrik Sattler | 5 Jun 2011 10:55
Picon

Re: [PATCH 1/2] Fix build errors on obex_test tool when using gcc 4.6

Am Freitag, 3. Juni 2011, 09:24:21 schrieb Luiz Augusto von Dentz:
> Hi Hendrik,
> 
> On Thu, Jun 2, 2011 at 5:42 PM, Luiz Augusto von Dentz
> 
> <luiz.dentz <at> gmail.com> wrote:
> > Hi Hendrik,
> > 
> > On Wed, Jun 1, 2011 at 2:11 PM, Hendrik Sattler <post <at> hendrik-sattler.de> 
wrote:
> >> Zitat von Luiz Augusto von Dentz <luiz.dentz <at> gmail.com>:
> >>> Hi Hendrik,
> >>> 
> >>> On Fri, May 27, 2011 at 2:04 PM, Hendrik Sattler
> >>> 
> >>> <post <at> hendrik-sattler.de> wrote:
> >>>> Am Freitag, 27. Mai 2011, 09:54:13 schrieb Luiz Augusto von Dentz:
> >>>>> > Note that those are build warnings, not build errors (except when
> >>>>> > using maintainer mode).
> >>>>> 
> >>>>> Which is the whole point to force fixing and not just ignore them.
> >>>> 
> >>>> Your commit message is wrong, that's what I meant!
> >>> 
> >>> I did rebase your changes on top of my build fixes here:
> >>> git://gitorious.org/~vudentz/openobex/vudentz-clone.git
> >>> 
> >>> If you are ok, I will resend my 2 build fixes again. I also did a
> >>> quick review on the other changes and noticed at least one use of c++
> >>> comment style '//'
(Continue reading)

Hendrik Sattler | 5 Jun 2011 17:38
Picon

Collection of fixes

These are rather simple fixes of all kind. The fix 7 even fixes a long-standing
bug.

------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today. 
http://p.sf.net/sfu/quest-dev2dev2 
Hendrik Sattler | 5 Jun 2011 17:38
Picon

[PATCH 1/8] Fix build errors on obex_test tool when using gcc 4.6

From: Luiz Augusto von Dentz <luiz.von.dentz <at> intel.com>

obex_test_client.c: In function ‘push_client’:
obex_test_client.c:229:6: error: variable ‘num’ set but not used
obex_test_client.c: In function ‘put_client’:
obex_test_client.c:290:6: error: variable ‘num’ set but not used
obex_test_client.c: In function ‘get_client’:
obex_test_client.c:347:6: error: variable ‘num’ set but not used
obex_test_client.c: In function ‘setpath_client’:
obex_test_client.c:418:6: error: variable ‘num’ set but not used
cc1: all warnings being treated as errors
---
 apps/obex_test/obex_test_client.c |   31 +++++++++++++++++++++++++++----
 1 files changed, 27 insertions(+), 4 deletions(-)

diff --git a/apps/obex_test/obex_test_client.c b/apps/obex_test/obex_test_client.c
index 0bf5d42..739f04a 100644
--- a/apps/obex_test/obex_test_client.c
+++ b/apps/obex_test/obex_test_client.c
 <at>  <at>  -234,7 +234,13  <at>  <at>  void push_client(obex_t *handle)
 	int file_size;

 	printf("PUSH filename> ");
-	num = scanf("%s", fname);
+	memset(fname, 0, sizeof(fname));
+	num = scanf("%199c", fname);
+	if (num != 1) {
+		perror("scanf");
+		return;
+	}
(Continue reading)

Hendrik Sattler | 5 Jun 2011 17:38
Picon

[PATCH 2/8] Fix build errors on ircp tool when using gcc 4.6

From: Luiz Augusto von Dentz <luiz.von.dentz <at> intel.com>

ircp_server.c: In function ‘ircp_srv_receive’:
ircp_server.c:303:1: error: ISO C90 forbids mixed declarations and code
ircp_server.c: In function ‘ircp_srv_recv’:
ircp_server.c:346:6: error: variable ‘err’ set but not used
ircp_server.c: In function ‘ircp_srv_receive’:
ircp_server.c:369:1: error: expected declaration or statement at end of input
ircp_server.c:369:1: error: control reaches end of non-void function
cc1: all warnings being treated as errors
---
 apps/ircp/ircp_client.c |    5 +++++
 apps/ircp/ircp_server.c |   11 +++++++++--
 2 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/apps/ircp/ircp_client.c b/apps/ircp/ircp_client.c
index 7f10d0c..1acd4a8 100644
--- a/apps/ircp/ircp_client.c
+++ b/apps/ircp/ircp_client.c
 <at>  <at>  -395,6 +395,11  <at>  <at>  int ircp_put(ircp_client_t *cli, char *name)
 		char *dirname;
 		
 		err = chdir(name);
+		if (err < 0) {
+			perror("chdir:");
+			return -1;
+		}
+
 		name = ".";
 		
(Continue reading)


Gmane