Skip to content

Commit

Permalink
fix spelling errors (#655)
Browse files Browse the repository at this point in the history
* fix spelling errors
* change pid file location to /run
* fix more spelling errors
* fix more spelling errors
* fix spelling errors
* fix more spelling errors
* fix more spelling errors
  • Loading branch information
bbonev authored Sep 27, 2021
1 parent 67346d9 commit e51d9b7
Show file tree
Hide file tree
Showing 23 changed files with 42 additions and 42 deletions.
2 changes: 1 addition & 1 deletion docs/examples/long-sms.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ int main(int argc UNUSED, char **argv UNUSED)
GSM_MultiPartSMSInfo SMSInfo;
GSM_SMSC PhoneSMSC;
char recipient_number[] = "+1234567890";
char message_text[] = "Very long example Gammu message to show how to construct contatenated messages using libGammu. Very long example Gammu message to show how to construct contatenated messages using libGammu.";
char message_text[] = "Very long example Gammu message to show how to construct concatenated messages using libGammu. Very long example Gammu message to show how to construct concatenated messages using libGammu.";
unsigned char message_unicode[(sizeof(message_text) + 1) * 2];
GSM_Debug_Info *debug_info;
int return_value = 0;
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/smsd.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ int main(int argc UNUSED, char **argv UNUSED)
*/
GSM_InitLocales(NULL);

/* Initalize configuration with program name */
/* Initialize configuration with program name */
config = SMSD_NewConfig("smsd-example");
assert(config != NULL);

Expand Down
2 changes: 1 addition & 1 deletion docs/man/gammu-smsd-tables.7
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ for each message\fP, \fBD3\fP in following example), byte for number of messages
number) and byte for number of current message (\fB01\fP for first message,
\fB02\fP for second, etc.).
.sp
I most cases, the mutlipart message has to be class 1.
In most cases, the multipart message has to be class 1.
.sp
For example long text message of two parts could look like following:
.INDENT 0.0
Expand Down
2 changes: 1 addition & 1 deletion docs/man/gammu-smsd.1
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ You now should be able to get errors from SMSD even if it fails to start as a
service.
.SS Invoking Gammu and suspending SMSD
.sp
As you can not run Gammu and Gammu SMSD at same time on signle device, you can
As you can not run Gammu and Gammu SMSD at same time on single device, you can
workaround this limitation by suspending SMSD temporarily using \fISIGUSR1\fP and
\fISIGUSR2\fP signals (see also \fI\%Signals\fP):
.INDENT 0.0
Expand Down
2 changes: 1 addition & 1 deletion docs/man/gammu-smsdrc.5
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ Default is \fBunicode\fP\&.
\fBNOTE:\fP
.INDENT 7.0
.INDENT 3.5
In \fBdetail\fP format, all message parts are stored into signle file,
In \fBdetail\fP format, all message parts are stored into single file,
for all others each message part is saved separately.
.UNINDENT
.UNINDENT
Expand Down
8 changes: 4 additions & 4 deletions docs/man/gammu.1
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ will see location. If you want to get such sms from phone alone, use
.INDENT 0.0
.TP
.B geteachsms \-pbk
Similiary to \fBgammu getallsms\fP\&. Difference is, that
Similarly to \fBgammu getallsms\fP\&. Difference is, that
links all concatenated sms
.UNINDENT
.INDENT 0.0
Expand Down Expand Up @@ -530,7 +530,7 @@ _
T{
Character
T} T{
Formating
Formatting
T}
_
T{
Expand Down Expand Up @@ -1009,12 +1009,12 @@ Delete folder with given ID.
.INDENT 0.0
.TP
.B getfilefolder fileID, fileID
Retrieve files or all files from folder with given IDs from a phone filesytem.
Retrieve files or all files from folder with given IDs from a phone filesystem.
.UNINDENT
.INDENT 0.0
.TP
.B getfiles fileID, fileID
Retrieve files with given IDs from a phone filesytem.
Retrieve files with given IDs from a phone filesystem.
.UNINDENT
.INDENT 0.0
.TP
Expand Down
2 changes: 1 addition & 1 deletion docs/manual/faq/general.rst
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ You can match by various attributes, you can figure them using udevadm command:

.. _echo:

Mutliple programs using same device cause various errors, how to fix that?
Multiple programs using same device cause various errors, how to fix that?
--------------------------------------------------------------------------

Gammu needs to be the only program using the device, otherwise you will get
Expand Down
8 changes: 4 additions & 4 deletions docs/manual/gammu/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ ____________

.. option:: geteachsms -pbk

Similiary to :option:`gammu getallsms`. Difference is, that
Similarly to :option:`gammu getallsms`. Difference is, that
links all concatenated sms

.. option:: getsms folder start [stop]
Expand Down Expand Up @@ -436,7 +436,7 @@ ____________
last text will be formatted. You can use combinations of chars:

========= ==================
Character Formating
Character Formatting
========= ==================
``l`` left aligned
``c`` centered
Expand Down Expand Up @@ -799,11 +799,11 @@ level and Gammu does not use that.

.. option:: getfilefolder fileID, fileID, ...

Retrieve files or all files from folder with given IDs from a phone filesytem.
Retrieve files or all files from folder with given IDs from a phone filesystem.

.. option:: getfiles fileID, fileID, ...

Retrieve files with given IDs from a phone filesytem.
Retrieve files with given IDs from a phone filesystem.

.. option:: getfilesystem [-flatall|-flat]

Expand Down
10 changes: 5 additions & 5 deletions docs/manual/protocol/nokia.rst
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ You have to implement collision protocol. IE. you should listen for
what you are transmitting, and if it does not come back, you have
collision.

You should wait for bus to be free for 3 miliseconds before normal
message, and for 2.5 miliseconds before acknowledge. You should wait
for acknowledge for 200 miliseconds, then retransmit.
You should wait for bus to be free for 3 milliseconds before normal
message, and for 2.5 milliseconds before acknowledge. You should wait
for acknowledge for 200 milliseconds, then retransmit.

Frame format for FBUS version 1
-------------------------------
Expand Down Expand Up @@ -189,7 +189,7 @@ Ack::
{ FrameID, DestDEV, SrcDEV, 0x7f, Id_SeqNo, ChkSum }

where Id_SeqNo: Is the sequence number that you are
acknowleging (from the other part).
acknowledging (from the other part).

Frame format for Infrared::

Expand Down Expand Up @@ -274,7 +274,7 @@ enable ???:
1F 04 00 78 00 04 01 02 08 01 SQ CS
status indication = enable ??? sent to HFU-2 on power on
byte 9 (07,08,0E) seems to be a pointer to a memory location,
byte 10 is the data at this memeory location.
byte 10 is the data at this memory location.
response from HFU:
1F 00 04 78 00 03 02 01 03 SQ CS
response message from HFU-2 (use unknown)
Expand Down
2 changes: 1 addition & 1 deletion docs/manual/protocol/samsung-gt.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ listed after ``AT+SSHR=0``). e.g.::


Please note, that the format for writing is somehow different, than
for reading - hour and minuts must be in two-digit form!
for reading - hour and minutes must be in two-digit form!
The text fields (as shown above) are formatted in the following way:
"number_of_characters_in_string,string"
In all items above the first string is the name of event, the second
Expand Down
12 changes: 6 additions & 6 deletions docs/manual/protocol/tdma_5120.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ that last answers with::
88 88 88 88 88
own #
09 63 c2 09 03 00 0b
unknow
unknown
0a
group id
01
Expand All @@ -84,13 +84,13 @@ that last answers with::
20 41 43 41 45 00 00 00 00 00 00 00 00 00 00 00
alpha tag
b3 4d
unknow
unknown
01
NAM status
11 11 11 11 11 00 00 00 00 00 00 00 00
unknow
unknown
00 00 00 00 00 00 01 00 00 00 01 36
unknow
unknown
01 4d
dedicate ch
01 4e
Expand All @@ -106,11 +106,11 @@ b3 4d
00 00 00 00 00 00 00 00 00 00 00 00 00 00
msg center #
08 01 80 70 8f dd 00 ef 00 00 00 00 00 00 00 00
unknow
unknown
00 00 00 00 00
gate way #
00 00 00
unknow
unknown

More interesting ( and dangerous ) is than the 07 10 sequence in place
of 07 11 in the request change the command from read to write.be care
Expand Down
8 changes: 4 additions & 4 deletions docs/manual/python/gammu.rst
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,7 @@ This module wraps all python-gammu functionality.

.. method:: SetDebugLevel(Level)

Sets state machine debug level accorting to passed string. You need to configure output file using :meth:`SetDebugFile` to activate it.
Sets state machine debug level according to passed string. You need to configure output file using :meth:`SetDebugFile` to activate it.

:type Level: str
:param Level: name of debug level to use, currently one of:
Expand Down Expand Up @@ -1122,7 +1122,7 @@ Debugging configuration

.. function:: SetDebugLevel(Level)

Sets global debug level accorting to passed string. You need to configure output file using :meth:`SetDebugFile` to activate it.
Sets global debug level according to passed string. You need to configure output file using :meth:`SetDebugFile` to activate it.

:type Level: str
:param Level: name of debug level to use, currently one of:
Expand All @@ -1148,7 +1148,7 @@ Message processing
:type Messages: list
:type EMS: bool
:param Messages: List of messages to link, see :ref:`sms_obj`
:param EMS: Whether to detect ems, defauls to True
:param EMS: Whether to detect ems, defaults to True
:return: List of linked messages, see :ref:`sms_obj`
:rtype: list

Expand All @@ -1173,7 +1173,7 @@ Message processing

:param Messages: Nessages to decode, see :ref:`sms_obj`
:type Messages: list
:param EMS: Whether to use EMS, defalt to True
:param EMS: Whether to use EMS, defaults to True
:type EMS: bool
:return: Multi part message information, see :ref:`sms_info_obj`
:rtype: dict
Expand Down
2 changes: 1 addition & 1 deletion docs/manual/smsd/config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ that all path should contain trailing path separator (/ on Unix systems):

.. note::

In ``detail`` format, all message parts are stored into signle file,
In ``detail`` format, all message parts are stored into single file,
for all others each message part is saved separately.

.. config:option:: OutboxFormat
Expand Down
2 changes: 1 addition & 1 deletion docs/manual/smsd/smsd.rst
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ service.
Invoking Gammu and suspending SMSD
++++++++++++++++++++++++++++++++++

As you can not run Gammu and Gammu SMSD at same time on signle device, you can
As you can not run Gammu and Gammu SMSD at same time on single device, you can
workaround this limitation by suspending SMSD temporarily using `SIGUSR1` and
`SIGUSR2` signals (see also :ref:`gammu-smsd-signals`):

Expand Down
2 changes: 1 addition & 1 deletion docs/manual/smsd/tables.rst
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ for each message**, ``D3`` in following example), byte for number of messages
number) and byte for number of current message (``01`` for first message,
``02`` for second, etc.).

I most cases, the mutlipart message has to be class 1.
In most cases, the mutltipart message has to be class 1.

For example long text message of two parts could look like following:

Expand Down
2 changes: 1 addition & 1 deletion gammu/depend/nokia/dct3trac/wmx-sim.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ void simAnswer_Process(unsigned char type, unsigned char *buffer, size_t length)
*/
break;
default:
printf("Uknown subtype! dumping data: ");
printf("Unknown subtype! dumping data: ");
for(x=0;x<length;x++) printf("%02x ", buffer[x]&0xFF);
//printf("\n");
break;
Expand Down
2 changes: 1 addition & 1 deletion gammu/depend/nokia/dct4.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ static DCT4_Feature DCT4Features[] = {
{DCT4_JAVA_TCK, "Java TCK support", {{1,"on"},{0,"off"},{0,""}}},

{DCT4_ALS, "Alternate Line Service (ALS)", {{1,"on"},{0,"off"},{0,""}}},
{DCT4_A52, "Ciphering alghoritm A52", {{1,"on"},{0,"off"},{0,""}}},
{DCT4_A52, "Ciphering algorithm A52", {{1,"on"},{0,"off"},{0,""}}},
{DCT4_CSP, "Customer Service Profile", {{0,"off"},{1,"on"},{0,""}}},
{DCT4_EONS, "EONS support", {{1,"on"},{0,"off"},{0,""}}},
{DCT4_3GINDICATOR, "3G indicator", {{1,"on"},{0,"off"},{0,""}}},
Expand Down
2 changes: 1 addition & 1 deletion libgammu/phone/alcatel/alcatel.c
Original file line number Diff line number Diff line change
Expand Up @@ -976,7 +976,7 @@ static GSM_Error ALCATEL_ReplyGetFieldValue(GSM_Protocol_Message *msg, GSM_State
Priv->ReturnType = Alcatel_byte;
Priv->ReturnInt = buffer[3];
} else {
smprintf(s, "WARNING: Uknown data type received (%02X,%02X)\n", buffer[1], buffer[2]);
smprintf(s, "WARNING: Unknown data type received (%02X,%02X)\n", buffer[1], buffer[2]);
return ERR_UNKNOWNRESPONSE;
}
return ERR_NONE;
Expand Down
2 changes: 1 addition & 1 deletion libgammu/phone/at/at-sms.c
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,7 @@ GSM_Error ATGEN_ReplyGetSMSMessage(GSM_Protocol_Message *msg, GSM_StateMachine *
}
sms->InboxFolder = FALSE;
} else {
smprintf(s, "Uknown message state: %s\n", buffer);
smprintf(s, "Unknown message state: %s\n", buffer);
return ERR_UNKNOWN;
}

Expand Down
4 changes: 2 additions & 2 deletions libgammu/phone/at/atgen.c
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ GSM_Error ATGEN_HandleCMEError(GSM_StateMachine *s)
GSM_Phone_ATGENData *Priv = &s->Phone.Data.Priv.ATGEN;

if (Priv->ErrorCode == 0) {
smprintf(s, "CME Error occured, but it's type not detected\n");
smprintf(s, "CME Error occurred, but it's type not detected\n");
} else if (Priv->ErrorText == NULL) {
smprintf(s, "CME Error %i, no description available\n", Priv->ErrorCode);
} else {
Expand Down Expand Up @@ -378,7 +378,7 @@ GSM_Error ATGEN_HandleCMSError(GSM_StateMachine *s)
GSM_Phone_ATGENData *Priv = &s->Phone.Data.Priv.ATGEN;

if (Priv->ErrorCode == 0) {
smprintf(s, "CMS Error occured, but it's type not detected\n");
smprintf(s, "CMS Error occurred, but it's type not detected\n");
} else if (Priv->ErrorText == NULL) {
smprintf(s, "CMS Error %i, no description available\n", Priv->ErrorCode);
} else {
Expand Down
2 changes: 1 addition & 1 deletion libgammu/service/gsmcal.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ void GSM_GetCalendarRecurranceRepeat(GSM_Debug_Info *di, unsigned char *rec, uns
if (Recurrance == 0xffff) Recurrance=24*365;
/* dct3: unavailable, dct4: 65534 (0xffff-1) is 30 days */
if (Recurrance == 0xffff-1) Recurrance=24*30;
smfprintf(di, "Recurrance : %i hours\n",Recurrance);
smfprintf(di, "Recurrence : %i hours\n",Recurrance);

for (i=0;i<entry->EntriesNum;i++) {
if (entry->Entries[i].EntryType == CAL_START_DATETIME) {
Expand Down
2 changes: 1 addition & 1 deletion libgammu/service/gsmdata.c
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ GSM_Error GSM_DecodeMMSFileToMultiPart(GSM_Debug_Info *di, GSM_File *file, GSM_E
smfprintf(di, " Message class : ");
switch (file->Buffer[pos++]) {
case 0x80: smfprintf(di, "personal\n"); break;
case 0x81: smfprintf(di, "advertisment\n"); break;
case 0x81: smfprintf(di, "advertisement\n"); break;
case 0x82: smfprintf(di, "informational\n"); break;
case 0x83: smfprintf(di, "auto\n"); break;
default : smfprintf(di, "unknown\n"); break;
Expand Down
2 changes: 1 addition & 1 deletion libgammu/service/sms/gsmmulti.c
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ GSM_Error GSM_AddSMS_Text_UDH(GSM_Debug_Info *di,
switch (Coding) {
case SMS_Coding_Default_No_Compression:
FindDefaultAlphabetLen(Buffer,&i,&j,FreeText);
smfprintf(di, "Defalt text, length %ld %ld\n", (long)i, (long)j);
smfprintf(di, "Default text, length %ld %ld\n", (long)i, (long)j);
SMS->SMS[SMS->Number].Text[UnicodeLength(SMS->SMS[SMS->Number].Text)*2+i*2] = 0;
SMS->SMS[SMS->Number].Text[UnicodeLength(SMS->SMS[SMS->Number].Text)*2+i*2+1] = 0;
memcpy(SMS->SMS[SMS->Number].Text+UnicodeLength(SMS->SMS[SMS->Number].Text)*2,Buffer,i*2);
Expand Down

0 comments on commit e51d9b7

Please sign in to comment.