2012-03-30 15:55:25

by Rafael Fonseca

[permalink] [raw]
Subject: [PATCH] Fix spellings errors.

As my first attempt to send a patch to the project, I have used the
codespell tool (https://github.com/lucasdemarchi/codespell) to search for
spelling errors in the code.

If the patch is ok, could someone apply it, please?

Signed-off-by: Rafael F. Santos <[email protected]>
---
audio/telephony-maemo5.c | 2 +-
audio/telephony-maemo6.c | 2 +-
audio/unix.c | 2 +-
mgmt/main.c | 2 +-
sbc/sbc.h | 2 +-
src/uinput.h | 2 +-
6 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/audio/telephony-maemo5.c b/audio/telephony-maemo5.c
index 2832062..49230f1 100644
--- a/audio/telephony-maemo5.c
+++ b/audio/telephony-maemo5.c
@@ -1014,7 +1014,7 @@ static void handle_call_status(DBusMessage *msg, const char *call_path)
DBUS_TYPE_UINT32, &cause_type,
DBUS_TYPE_UINT32, &cause,
DBUS_TYPE_INVALID)) {
- error("Unexpected paramters in Instance.CallStatus() signal");
+ error("Unexpected parameters in Instance.CallStatus() signal");
return;
}

diff --git a/audio/telephony-maemo6.c b/audio/telephony-maemo6.c
index dd75422..943f1e1 100644
--- a/audio/telephony-maemo6.c
+++ b/audio/telephony-maemo6.c
@@ -1386,7 +1386,7 @@ static void handle_call_status(DBusMessage *msg, const char *call_path)
DBUS_TYPE_UINT32, &cause_type,
DBUS_TYPE_UINT32, &cause,
DBUS_TYPE_INVALID)) {
- error("Unexpected paramters in Instance.CallStatus() signal");
+ error("Unexpected parameters in Instance.CallStatus() signal");
return;
}

diff --git a/audio/unix.c b/audio/unix.c
index 5199831..6ccbf47 100644
--- a/audio/unix.c
+++ b/audio/unix.c
@@ -534,7 +534,7 @@ static int a2dp_append_codec(struct bt_get_capabilities_rsp *rsp,

space_left = BT_SUGGESTED_BUFFER_SIZE - rsp->h.length;

- /* endianess prevent direct cast */
+ /* endianness prevent direct cast */
if (codec_cap->media_codec_type == A2DP_CODEC_SBC) {
struct sbc_codec_cap *sbc_cap = (void *) codec_cap;
sbc_capabilities_t *sbc = (void *) codec;
diff --git a/mgmt/main.c b/mgmt/main.c
index 90d43e3..3481e14 100644
--- a/mgmt/main.c
+++ b/mgmt/main.c
@@ -1739,7 +1739,7 @@ static void did_rsp(int mgmt_sk, uint16_t op, uint16_t id, uint8_t status,
exit(EXIT_FAILURE);
}

- printf("Device ID succesfully set\n");
+ printf("Device ID successfully set\n");

exit(EXIT_SUCCESS);
}
diff --git a/sbc/sbc.h b/sbc/sbc.h
index 2f830ad..f7ec99d 100644
--- a/sbc/sbc.h
+++ b/sbc/sbc.h
@@ -60,7 +60,7 @@ extern "C" {
#define SBC_SB_4 0x00
#define SBC_SB_8 0x01

-/* Data endianess */
+/* Data endianness */
#define SBC_LE 0x00
#define SBC_BE 0x01

diff --git a/src/uinput.h b/src/uinput.h
index e83986b..20e0941 100644
--- a/src/uinput.h
+++ b/src/uinput.h
@@ -55,7 +55,7 @@ extern "C" {
/*
* Keys and buttons
*
- * Most of the keys/buttons are modeled after USB HUT 1.12
+ * Most of the keys/buttons are modelled after USB HUT 1.12
* (see http://www.usb.org/developers/hidpage).
* Abbreviations in the comments:
* AC - Application Control
--
1.7.9.5



2012-03-30 16:15:48

by Rafael Fonseca

[permalink] [raw]
Subject: Re: [PATCH] Fix spellings errors.

On Fri, Mar 30, 2012 at 13:09, Daniele Forsi <[email protected]> wrote:
> 2012/3/30 Rafael Fonseca:
>
>> -       /* endianess prevent direct cast */
>> +       /* endianness prevent direct cast */
>
> s/prevent/prevents/

Thanks! Should I send a new fixed version?


Att.
--
Rafael Fonseca

2012-03-30 16:09:44

by Daniele Forsi

[permalink] [raw]
Subject: Re: [PATCH] Fix spellings errors.

2012/3/30 Rafael Fonseca:

> - ? ? ? /* endianess prevent direct cast */
> + ? ? ? /* endianness prevent direct cast */

s/prevent/prevents/

--
Daniele Forsi

2012-04-03 13:32:47

by Rafael Fonseca

[permalink] [raw]
Subject: Re: [PATCH] Fix spellings errors.

Hi Johan,

On Tue, Apr 3, 2012 at 08:20, Johan Hedberg <[email protected]> wrote:
> Hi Rafael,
>
> On Fri, Mar 30, 2012, Rafael Fonseca wrote:
>>
>> Thanks! Should I send a new fixed version?
>
> Yes, please send a v2.

I sent a fixed version but forgot to annotate it as v2, sorry.


Att.
--
Rafael Fonseca

2012-04-03 11:20:30

by Johan Hedberg

[permalink] [raw]
Subject: Re: [PATCH] Fix spellings errors.

Hi Rafael,

On Fri, Mar 30, 2012, Rafael Fonseca wrote:
> On Fri, Mar 30, 2012 at 13:09, Daniele Forsi <[email protected]> wrote:
> > 2012/3/30 Rafael Fonseca:
> >
> >> - ? ? ? /* endianess prevent direct cast */
> >> + ? ? ? /* endianness prevent direct cast */
> >
> > s/prevent/prevents/
>
> Thanks! Should I send a new fixed version?

Yes, please send a v2.

Johan