Skip to content

Commit ca87af5

Browse files
author
Martin Dummer
committed
*.h: cosmetic and spelling fixes
Signed-off-by: Martin Dummer <[email protected]>
1 parent fdf479c commit ca87af5

File tree

5 files changed

+28
-28
lines changed

5 files changed

+28
-28
lines changed

argz.h

+16-16
Original file line numberDiff line numberDiff line change
@@ -67,51 +67,51 @@ typedef int error_t;
6767
#endif
6868

6969
/* Make a '\0' separated arg vector from a unix argv vector, returning it in
70-
ARGZ, and the total length in LEN. If a memory allocation error occurs,
71-
ENOMEM is returned, otherwise 0. The result can be destroyed using free. */
70+
ARGZ, and the total length in LEN. If a memory allocation error occurs,
71+
ENOMEM is returned, otherwise 0. The result can be destroyed using free. */
7272
extern error_t __argz_create (char *__const __argv[], char **__restrict __argz,
7373
size_t *__restrict __len);
7474
extern error_t argz_create (char *__const __argv[], char **__restrict __argz,
7575
size_t *__restrict __len);
7676

7777
/* Make a '\0' separated arg vector from a SEP separated list in
78-
STRING, returning it in ARGZ, and the total length in LEN. If a
78+
STRING, returning it in ARGZ, and the total length in LEN. If a
7979
memory allocation error occurs, ENOMEM is returned, otherwise 0.
80-
The result can be destroyed using free. */
80+
The result can be destroyed using free. */
8181
extern error_t __argz_create_sep (__const char *__restrict __string,
8282
int __sep, char **__restrict __argz,
8383
size_t *__restrict __len);
8484
extern error_t argz_create_sep (__const char *__restrict __string,
8585
int __sep, char **__restrict __argz,
8686
size_t *__restrict __len);
8787

88-
/* Returns the number of strings in ARGZ. */
88+
/* Returns the number of strings in ARGZ. */
8989
extern size_t __argz_count (__const char *__argz, size_t __len)
9090
__attribute_pure__;
9191
extern size_t argz_count (__const char *__argz, size_t __len)
9292
__attribute_pure__;
9393

9494
/* Puts pointers to each string in ARGZ into ARGV, which must be large enough
95-
to hold them all. */
95+
to hold them all. */
9696
extern void __argz_extract (__const char *__restrict __argz, size_t __len,
9797
char **__restrict __argv);
9898
extern void argz_extract (__const char *__restrict __argz, size_t __len,
9999
char **__restrict __argv);
100100

101101
/* Make '\0' separated arg vector ARGZ printable by converting all the '\0's
102-
except the last into the character SEP. */
102+
except the last into the character SEP. */
103103
extern void __argz_stringify (char *__argz, size_t __len, int __sep);
104104
extern void argz_stringify (char *__argz, size_t __len, int __sep);
105105

106-
/* Append BUF, of length BUF_LEN to the argz vector in ARGZ & ARGZ_LEN. */
106+
/* Append BUF, of length BUF_LEN to the argz vector in ARGZ & ARGZ_LEN. */
107107
extern error_t __argz_append (char **__restrict __argz,
108108
size_t *__restrict __argz_len,
109109
__const char *__restrict __buf, size_t _buf_len);
110110
extern error_t argz_append (char **__restrict __argz,
111111
size_t *__restrict __argz_len,
112112
__const char *__restrict __buf, size_t __buf_len);
113113

114-
/* Append STR to the argz vector in ARGZ & ARGZ_LEN. */
114+
/* Append STR to the argz vector in ARGZ & ARGZ_LEN. */
115115
extern error_t __argz_add (char **__restrict __argz,
116116
size_t *__restrict __argz_len,
117117
__const char *__restrict __str);
@@ -120,15 +120,15 @@ extern error_t argz_add (char **__restrict __argz,
120120
__const char *__restrict __str);
121121

122122
/* Append SEP separated list in STRING to the argz vector in ARGZ &
123-
ARGZ_LEN. */
123+
ARGZ_LEN. */
124124
extern error_t __argz_add_sep (char **__restrict __argz,
125125
size_t *__restrict __argz_len,
126126
__const char *__restrict __string, int __delim);
127127
extern error_t argz_add_sep (char **__restrict __argz,
128128
size_t *__restrict __argz_len,
129129
__const char *__restrict __string, int __delim);
130130

131-
/* Delete ENTRY from ARGZ & ARGZ_LEN, if it appears there. */
131+
/* Delete ENTRY from ARGZ & ARGZ_LEN, if it appears there. */
132132
extern void __argz_delete (char **__restrict __argz,
133133
size_t *__restrict __argz_len,
134134
char *__restrict __entry);
@@ -139,9 +139,9 @@ extern void argz_delete (char **__restrict __argz,
139139
/* Insert ENTRY into ARGZ & ARGZ_LEN before BEFORE, which should be an
140140
existing entry in ARGZ; if BEFORE is NULL, ENTRY is appended to the end.
141141
Since ARGZ's first entry is the same as ARGZ, argz_insert (ARGZ, ARGZ_LEN,
142-
ARGZ, ENTRY) will insert ENTRY at the beginning of ARGZ. If BEFORE is not
142+
ARGZ, ENTRY) will insert ENTRY at the beginning of ARGZ. If BEFORE is not
143143
in ARGZ, EINVAL is returned, else if memory can't be allocated for the new
144-
ARGZ, ENOMEM is returned, else 0. */
144+
ARGZ, ENOMEM is returned, else 0. */
145145
extern error_t __argz_insert (char **__restrict __argz,
146146
size_t *__restrict __argz_len,
147147
char *__restrict __before,
@@ -152,8 +152,8 @@ extern error_t argz_insert (char **__restrict __argz,
152152
__const char *__restrict __entry);
153153

154154
/* Replace any occurrences of the string STR in ARGZ with WITH, reallocating
155-
ARGZ as necessary. If REPLACE_COUNT is non-zero, *REPLACE_COUNT will be
156-
incremented by number of replacements performed. */
155+
ARGZ as necessary. If REPLACE_COUNT is non-zero, *REPLACE_COUNT will be
156+
incremented by number of replacements performed. */
157157
extern error_t __argz_replace (char **__restrict __argz,
158158
size_t *__restrict __argz_len,
159159
__const char *__restrict __str,
@@ -166,7 +166,7 @@ extern error_t argz_replace (char **__restrict __argz,
166166
unsigned int *__restrict __replace_count);
167167

168168
/* Returns the next entry in ARGZ & ARGZ_LEN after ENTRY, or NULL if there
169-
are no more. If entry is NULL, then the first entry is returned. This
169+
are no more. If entry is NULL, then the first entry is returned. This
170170
behavior allows two convenient iteration styles:
171171
172172
char *entry = 0;

stats.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ struct server_stats {
2727
struct timeval start_time;
2828
struct timeval end_time;
2929
struct tms tms;
30-
30+
3131
/* connection statistics, updated by main thread */
3232
int max_simul_threads; /* maximum number of simultaneous server */
3333
struct timeval min_time; /* time between connection stats */

tftp_io.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
/* new opcode */
2727
#define OACK 06
2828
/* new error code */
29-
#define EOPTNEG 8 /* error in option negociation */
29+
#define EOPTNEG 8 /* error in option negotiation */
3030

3131
/* return value of tftp_get_packet */
3232
#define GET_DISCARD 0
@@ -38,7 +38,7 @@
3838
#define GET_ERROR 6
3939
#define GET_DATA 7
4040

41-
/* functions prototype */
41+
/* function prototypes */
4242
int tftp_send_request(int socket, struct sockaddr_storage *s_inn, short type,
4343
char *data_buffer, int data_buffer_size,
4444
struct tftp_opt *tftp_options);

tftpd.h

+6-6
Original file line numberDiff line numberDiff line change
@@ -48,22 +48,22 @@ struct thread_data {
4848
struct sockaddr_storage sa_mcast;
4949
union ip_mreq_storage mcastaddr;
5050
u_char mcast_ttl;
51-
51+
5252
/*
5353
* Self can read/write until client_ready is set. Then only allowed to read.
5454
* Other thread can read it only when client_ready is set. Remember that access
55-
* to client_ready bellow is protected by a mutex.
55+
* to client_ready below is protected by a mutex.
5656
*/
5757
struct tftp_opt *tftp_options;
58-
59-
/*
60-
* Must lock to insert in the list or search, but not to read or write
58+
59+
/*
60+
* Must lock to insert in the list or search, but not to read or write
6161
* in the client_info structure, since only the propriotary thread do it.
6262
*/
6363
pthread_mutex_t client_mutex;
6464
struct client_info *client_info;
6565
int client_ready; /* one if other thread may add client */
66-
66+
6767
/* must be lock (list lock) to update */
6868
struct thread_data *prev;
6969
struct thread_data *next;

tftpd_mtftp.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
#include "options.h"
2525

2626
/*
27-
* This structure hold information on mtftp configuration
28-
*
27+
* This structure holds information on mtftp configuration
28+
*
2929
*/
3030
struct mtftp_data {
3131
struct mtftp_thread *thread_data;
@@ -71,7 +71,7 @@ struct mtftp_thread {
7171
/* For options access */
7272
struct mtftp_data *mtftp_data;
7373

74-
struct mtftp_thread *next;
74+
struct mtftp_thread *next;
7575
};
7676

7777
/*

0 commit comments

Comments
 (0)