From 3a6b996d8b39fdc067df352d1eee757ef2a8f49b Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 21 Dec 2014 13:16:14 +0000 Subject: [PATCH 1/1] Assorted typo fixes in comments. Quite a few.. --- afs.c | 2 +- afs.h | 2 +- aft.c | 2 +- command.c | 2 +- crypt_backend.h | 2 +- exec.c | 4 ++-- fecdec_filter.c | 2 +- flac_afh.c | 2 +- gui_theme.c | 4 ++-- mix.h | 2 +- net.c | 4 ++-- oss_write.c | 2 +- recv_common.c | 2 +- string.h | 2 +- sync_filter.c | 4 ++-- udp_send.c | 2 +- write.h | 2 +- 17 files changed, 21 insertions(+), 21 deletions(-) diff --git a/afs.c b/afs.c index dd0d1bcd..68afec6c 100644 --- a/afs.c +++ b/afs.c @@ -773,7 +773,7 @@ static void register_signal_task(struct sched *s) static struct list_head afs_client_list; -/** Describes on connected afs client. */ +/** Describes one connected afs client. */ struct afs_client { /** Position in the afs client list. */ struct list_head node; diff --git a/afs.h b/afs.h index 0b443354..f70d5c93 100644 --- a/afs.h +++ b/afs.h @@ -127,7 +127,7 @@ struct ls_data { * * Before forking the afs child, para_server creates a bidirectional pipe * through which both processes communicate. Usually para_server requests a new - * audio in order to start streaming or when the end of the current audio file + * audio file in order to start streaming or when the end of the current audio file * has been reached. The afs process responds to such a request by sending * back an eight byte buffer. The first four bytes is the uint32_t * representation of the code, usually \p NEXT_AUDIO_FILE if an admissible diff --git a/aft.c b/aft.c index 5204ce0c..f87ac96e 100644 --- a/aft.c +++ b/aft.c @@ -2593,7 +2593,7 @@ static void afs_stat_callback(int fd, const struct osl_object *query) * is used to pass the status items from the afs process to the command handler * via a shared memory area and a pipe. * - * \return The return value of the underyling call to \ref send_callback_request(). + * \return The return value of the underlying call to \ref send_callback_request(). */ int send_afs_status(struct command_context *cc, int parser_friendly) { diff --git a/command.c b/command.c index a9f5aa69..661b2a8a 100644 --- a/command.c +++ b/command.c @@ -210,7 +210,7 @@ static int check_sender_args(int argc, char * const * argv, struct sender_comman * * The nonblock flag must be disabled for the file descriptor given by \a scc. * - * Stream cipher encryption is automatically activated if neccessary via the + * Stream cipher encryption is automatically activated if necessary via the * sideband transformation, depending on the value of \a band. * * \return Standard. diff --git a/crypt_backend.h b/crypt_backend.h index 040a719b..8ff69194 100644 --- a/crypt_backend.h +++ b/crypt_backend.h @@ -6,7 +6,7 @@ /** \file crypt_backend.h Non-public crypto interface. */ -/* This should only be incuded from files which provide crypto functions. */ +/* This should only be included from files which provide crypto functions. */ /** AES block size in bytes. */ #define AES_CRT128_BLOCK_SIZE 16 diff --git a/exec.c b/exec.c index 004c0437..c90df6e9 100644 --- a/exec.c +++ b/exec.c @@ -117,7 +117,7 @@ err_out: * Exec the given command. * * \param pid Will hold the pid of the created process upon return. - * \param cmdline Holds the command and its arguments, seperated by spaces. + * \param cmdline Holds the command and its arguments, separated by spaces. * \param fds A pointer to a value-result array. * * This function uses fork/exec to create a new process. \a fds must be a @@ -130,7 +130,7 @@ err_out: * - fd[i] > 0: create a pipe and dup i to one end of that pipe. * Upon return, fd[i] contains the file descriptor of the pipe. * - * In any case, all unneeded filedescriptors are closed. + * In any case, all unneeded file descriptors are closed. * * \return Standard. */ diff --git a/fecdec_filter.c b/fecdec_filter.c index 9edbcafe..31dd55c8 100644 --- a/fecdec_filter.c +++ b/fecdec_filter.c @@ -47,7 +47,7 @@ struct fec_header { uint16_t slice_bytes; /** Non-zero if this group is the beginning of the stream. */ uint8_t bos; - /** Non-zero if this stream embedds audio headers into fec groups. */ + /** Non-zero if this stream embeds audio headers into fec groups. */ uint8_t header_stream; }; diff --git a/flac_afh.c b/flac_afh.c index fd7bd24a..45879c2f 100644 --- a/flac_afh.c +++ b/flac_afh.c @@ -215,7 +215,7 @@ static FLAC__StreamDecoderTellStatus tell_cb( return FLAC__STREAM_DECODER_TELL_STATUS_OK; } -/* libflac insits on this callback being present. */ +/* libflac insists on this callback being present. */ static FLAC__StreamDecoderWriteStatus write_cb( __a_unused const FLAC__StreamDecoder *decoder, __a_unused const FLAC__Frame *frame, diff --git a/gui_theme.c b/gui_theme.c index 9e90029b..d68ddeeb 100644 --- a/gui_theme.c +++ b/gui_theme.c @@ -416,7 +416,7 @@ void theme_init(const char *name, struct gui_theme *t) * \param t Theme definition is stored here. * * This picks the theme that comes before the currently active one, or the last - * availabe theme, if the current one is the first. + * available theme, if the current one is the first. * * \sa \ref theme_next(). */ @@ -430,7 +430,7 @@ void theme_prev(struct gui_theme *t) * * \param t Theme definition is stored here. * - * This works exacly as theme_prev() but cycles forwards through the list of + * This works exactly as theme_prev() but cycles forwards through the list of * available themes. */ void theme_next(struct gui_theme *t) diff --git a/mix.h b/mix.h index 1141ce59..305e9d80 100644 --- a/mix.h +++ b/mix.h @@ -31,6 +31,6 @@ struct mixer { int (*get)(struct mixer_handle *handle); /** Change the value of the selected channel. */ int (*set)(struct mixer_handle *handle, int val); - /** Free all ressources associated with the given handle. */ + /** Free all resources associated with the given handle. */ void (*close)(struct mixer_handle **handle); }; diff --git a/net.c b/net.c index aa3fcbb9..05d8f5ca 100644 --- a/net.c +++ b/net.c @@ -48,7 +48,7 @@ * \param netmask Value of the netmask part in \a cidr or the * default of 32 if not specified. * - * \return Pointer to \a addr if succesful, NULL on error. + * \return Pointer to \a addr if successful, NULL on error. * \sa RFC 4632 */ char *parse_cidr(const char *cidr, @@ -601,7 +601,7 @@ static inline int estimated_header_overhead(const int af_type) * * \param sockfd The socket file descriptor. * - * The socket must be connected. See RFC 1122, 3.3.3. If the protocol familiy + * The socket must be connected. See RFC 1122, 3.3.3. If the protocol family * could not be determined, \p AF_INET is assumed. * * \return The maximum message size of the address family type. diff --git a/oss_write.c b/oss_write.c index 35f7b628..5decc24b 100644 --- a/oss_write.c +++ b/oss_write.c @@ -147,7 +147,7 @@ static int oss_init(struct writer_node *wn, unsigned sample_rate, * Set sampling rate * * If we request a higher sampling rate than is supported by the - * device, the the highest possible speed is automatically used. The + * device, the highest possible speed is automatically used. The * value actually used is returned as the new value of the argument. */ rate = sample_rate; diff --git a/recv_common.c b/recv_common.c index 02b785ff..411374a2 100644 --- a/recv_common.c +++ b/recv_common.c @@ -56,7 +56,7 @@ static void *parse_receiver_args(int receiver_num, char *options) * \param receiver_num contains the number of the receiver upon success * * This function checks whether \a ra starts with the name of a supported - * paraslash receiver, optinally followed by a colon and any options for that + * paraslash receiver, optionally followed by a colon and any options for that * receiver. If a valid receiver name was found the remaining part of \a ra is * passed to the receiver's config parser. * diff --git a/string.h b/string.h index 20cf8def..96595f0e 100644 --- a/string.h +++ b/string.h @@ -4,7 +4,7 @@ * Licensed under the GPL v2. For licencing details see COPYING. */ -/** \file string.h exported sybmols from string.c */ +/** \file string.h exported symbols from string.c */ /** Flags that change how content is printed into the buffer. */ enum para_buffer_flags { diff --git a/sync_filter.c b/sync_filter.c index 6a2a0946..de30b168 100644 --- a/sync_filter.c +++ b/sync_filter.c @@ -221,7 +221,7 @@ fail: } /* - * True if we sent a packet to all budies and received a packet from each + * True if we sent a packet to all buddies and received a packet from each * enabled buddy. */ static bool sync_complete(struct sync_filter_context *ctx) @@ -368,7 +368,7 @@ static int sync_post_select(__a_unused struct sched *s, void *context) return 1; /* * Although all enabled buddies are in sync we do not splice out - * ourselves immediately. We rather wait until the timout expires, + * ourselves immediately. We rather wait until the timeout expires, * or the buddy list has become empty. This opens a time window * for disabled buddies to become enabled by sending us a packet. */ diff --git a/udp_send.c b/udp_send.c index 465b3ca6..3fe2db80 100644 --- a/udp_send.c +++ b/udp_send.c @@ -58,7 +58,7 @@ static void udp_close_target(struct sender_client *sc) size_t len = vss_get_fec_eof_packet(&buf); /* - * Ignore the return value of wirte() since we are closing the target + * Ignore the return value of write() since we are closing the target * anyway. The sole purpose of the "do_nothing" statement is to silence * gcc. */ diff --git a/write.h b/write.h index 6ce5c32d..f308acef 100644 --- a/write.h +++ b/write.h @@ -48,7 +48,7 @@ struct writer { */ void *(*parse_config_or_die)(int argc, char **argv); /** - * Dellocate all configuration resources. + * Deallocate all configuration resources. * * This should free whatever was allocated by \ref parse_config_or_die(). */ -- 2.39.2