Projet

Général

Profil

Révision 2c912170

ID2c9121708a6e304420f2fc6820b37006ffe43453
Parent a1e346bc
Enfant dd749a26, 4dcf4ec0

Ajouté par Lars Kruse il y a plus de 4 ans

Fix some spelling mistakes

Thanks, codespell!

Voir les différences:

plugins/disk/smart-c/smart_.c
17 17
static char getitem(char *input, unsigned char item, char *output)
18 18
{
19 19
	unsigned char i = 0;
20
	unsigned char seperators = 0;
20
	unsigned char separators = 0;
21 21
	char know_this_seperator = 0;
22 22
	unsigned char start = 0;
23 23
	unsigned char stop = 0;
......
28 28
	}
29 29

  
30 30
	/* If we're requested to return the very first item... */
31
	if (seperators == item) {
31
	if (separators == item) {
32 32
		start = i;
33 33
	}
34 34

  
35
	while (input[i] && seperators < item + 1) {
35
	while (input[i] && separators < item + 1) {
36 36
		if (input[i] == ' ') {
37 37
			if (know_this_seperator == 0) {
38 38
				know_this_seperator = 1;
39
				seperators++;
40
				if (seperators == item + 1) {
39
				separators++;
40
				if (separators == item + 1) {
41 41
					stop = i;
42 42
					break;
43 43
				}
44 44
			}
45 45
		} else if (know_this_seperator) {
46 46
			know_this_seperator = 0;
47
			if (seperators == item) {
47
			if (separators == item) {
48 48
				start = i;
49 49
			}
50 50
		} else if (input[i] == '\n') {

Formats disponibles : Unified diff