From 6d3ed3f16f7c427b22e8087804cea0f9874f4358 Mon Sep 17 00:00:00 2001 From: Jonathan Neuschäfer Date: Thu, 31 Mar 2011 21:43:53 +0200 Subject: fix common misspellings These fixes were mostly generated with `codespell' [0] and manually reviewed. [0] http://git.profusion.mobi/cgit.cgi/lucas/codespell/ --- doc/user.xml | 2 +- src/archive_plugin.h | 2 +- src/audio_parser.h | 2 +- src/daemon.c | 2 +- src/encoder/flac_encoder.c | 2 +- src/encoder_plugin.h | 10 +++++----- src/filter_plugin.h | 8 ++++---- src/icy_server.c | 2 +- src/input_init.h | 2 +- src/input_plugin.h | 2 +- src/mixer_plugin.h | 8 ++++---- src/output_plugin.h | 8 ++++---- src/pcm_convert.h | 2 +- src/player_control.c | 2 +- src/player_thread.c | 2 +- src/playlist/lastfm_playlist_plugin.c | 2 +- src/server_socket.h | 6 +++--- src/socket_util.h | 4 ++-- src/song_save.h | 2 +- src/song_update.c | 2 +- src/sticker.h | 2 +- src/stored_playlist.h | 2 +- 22 files changed, 38 insertions(+), 38 deletions(-) diff --git a/doc/user.xml b/doc/user.xml index f24c7bdb..ecf9a663 100644 --- a/doc/user.xml +++ b/doc/user.xml @@ -356,7 +356,7 @@ cd mpd-version If set to "yes", then MPD attempts to keep this audio output always open. This may be useful for streaming servers, when you don't want to disconnect all - listeners even when playback is accidently stopped. + listeners even when playback is accidentally stopped. diff --git a/src/archive_plugin.h b/src/archive_plugin.h index 3541cf9d..7f038486 100644 --- a/src/archive_plugin.h +++ b/src/archive_plugin.h @@ -68,7 +68,7 @@ struct archive_plugin { * Opens an input_stream of a file within the archive. * * @param path the path within the archive - * @param error_r location to store the error occuring, or + * @param error_r location to store the error occurring, or * NULL to ignore errors */ struct input_stream *(*open_stream)(struct archive_file *af, diff --git a/src/audio_parser.h b/src/audio_parser.h index 526addca..a963eb46 100644 --- a/src/audio_parser.h +++ b/src/audio_parser.h @@ -38,7 +38,7 @@ struct audio_format; * @param dest the destination #audio_format struct * @param src the input string * @param mask if true, then "*" is allowed for any number of items - * @param error_r location to store the error occuring, or NULL to + * @param error_r location to store the error occurring, or NULL to * ignore errors * @return true on success */ diff --git a/src/daemon.c b/src/daemon.c index 89de9b9f..8bca9095 100644 --- a/src/daemon.c +++ b/src/daemon.c @@ -80,7 +80,7 @@ daemonize_kill(void) ret = kill(pid, SIGTERM); if (ret < 0) - MPD_ERROR("unable to kill proccess %i: %s", + MPD_ERROR("unable to kill process %i: %s", pid, g_strerror(errno)); exit(EXIT_SUCCESS); diff --git a/src/encoder/flac_encoder.c b/src/encoder/flac_encoder.c index a7d35597..8b315d71 100644 --- a/src/encoder/flac_encoder.c +++ b/src/encoder/flac_encoder.c @@ -205,7 +205,7 @@ flac_encoder_open(struct encoder *_encoder, struct audio_format *audio_format, pcm_buffer_init(&encoder->buffer); pcm_buffer_init(&encoder->expand_buffer); - /* this immediatelly outputs data throught callback */ + /* this immediately outputs data through callback */ #if !defined(FLAC_API_VERSION_CURRENT) || FLAC_API_VERSION_CURRENT <= 7 { diff --git a/src/encoder_plugin.h b/src/encoder_plugin.h index ba410c92..4a6e3805 100644 --- a/src/encoder_plugin.h +++ b/src/encoder_plugin.h @@ -78,7 +78,7 @@ encoder_struct_init(struct encoder *encoder, * * @param plugin the encoder plugin * @param param optional configuration - * @param error location to store the error occuring, or NULL to ignore errors. + * @param error location to store the error occurring, or NULL to ignore errors. * @return an encoder object on success, NULL on failure */ static inline struct encoder * @@ -107,7 +107,7 @@ encoder_finish(struct encoder *encoder) * @param encoder the encoder * @param audio_format the encoder's input audio format; the plugin * may modify the struct to adapt it to its abilities - * @param error location to store the error occuring, or NULL to ignore errors. + * @param error location to store the error occurring, or NULL to ignore errors. * @return true on success */ static inline bool @@ -135,7 +135,7 @@ encoder_close(struct encoder *encoder) * buffered available by encoder_read(). * * @param encoder the encoder - * @param error location to store the error occuring, or NULL to ignore errors. + * @param error location to store the error occurring, or NULL to ignore errors. * @return true on success */ static inline bool @@ -152,7 +152,7 @@ encoder_flush(struct encoder *encoder, GError **error) * * @param encoder the encoder * @param tag the tag object - * @param error location to store the error occuring, or NULL to ignore errors. + * @param error location to store the error occurring, or NULL to ignore errors. * @return true on success */ static inline bool @@ -170,7 +170,7 @@ encoder_tag(struct encoder *encoder, const struct tag *tag, GError **error) * @param encoder the encoder * @param data the buffer containing PCM samples * @param length the length of the buffer in bytes - * @param error location to store the error occuring, or NULL to ignore errors. + * @param error location to store the error occurring, or NULL to ignore errors. * @return true on success */ static inline bool diff --git a/src/filter_plugin.h b/src/filter_plugin.h index d1e6433c..58e34dfb 100644 --- a/src/filter_plugin.h +++ b/src/filter_plugin.h @@ -79,7 +79,7 @@ struct filter_plugin { * * @param plugin the filter plugin * @param param optional configuration section - * @param error location to store the error occuring, or NULL to + * @param error location to store the error occurring, or NULL to * ignore errors. * @return a new filter object, or NULL on error */ @@ -92,7 +92,7 @@ filter_new(const struct filter_plugin *plugin, * the specified configuration section. * * @param param the configuration section - * @param error location to store the error occuring, or NULL to + * @param error location to store the error occurring, or NULL to * ignore errors. * @return a new filter object, or NULL on error */ @@ -114,7 +114,7 @@ filter_free(struct filter *filter); * @param filter the filter object * @param audio_format the audio format of incoming data; the plugin * may modify the object to enforce another input format - * @param error location to store the error occuring, or NULL to + * @param error location to store the error occurring, or NULL to * ignore errors. * @return the format of outgoing data */ @@ -137,7 +137,7 @@ filter_close(struct filter *filter); * @param src the input buffer * @param src_size the size of #src_buffer in bytes * @param dest_size_r the size of the returned buffer - * @param error location to store the error occuring, or NULL to + * @param error location to store the error occurring, or NULL to * ignore errors. * @return the destination buffer on success (will be invalidated by * filter_close() or filter_filter()), NULL on error diff --git a/src/icy_server.c b/src/icy_server.c index fe5696cd..b6c89eaf 100644 --- a/src/icy_server.c +++ b/src/icy_server.c @@ -70,7 +70,7 @@ icy_server_metadata_string(const char *stream_title, const char* stream_url) meta_length = strlen(icy_metadata); - meta_length--; // substract placeholder + meta_length--; // subtract placeholder meta_length = ((int)meta_length / 16) + 1; diff --git a/src/input_init.h b/src/input_init.h index f6763c3a..ad92cda0 100644 --- a/src/input_init.h +++ b/src/input_init.h @@ -28,7 +28,7 @@ /** * Initializes this library and all input_stream implementations. * - * @param error_r location to store the error occuring, or NULL to + * @param error_r location to store the error occurring, or NULL to * ignore errors */ bool diff --git a/src/input_plugin.h b/src/input_plugin.h index bfd2be65..70b9155a 100644 --- a/src/input_plugin.h +++ b/src/input_plugin.h @@ -35,7 +35,7 @@ struct input_plugin { /** * Global initialization. This method is called when MPD starts. * - * @param error_r location to store the error occuring, or + * @param error_r location to store the error occurring, or * NULL to ignore errors * @return true on success, false if the plugin should be * disabled diff --git a/src/mixer_plugin.h b/src/mixer_plugin.h index 755591d7..9532b95c 100644 --- a/src/mixer_plugin.h +++ b/src/mixer_plugin.h @@ -41,7 +41,7 @@ struct mixer_plugin { * @param ao the pointer returned by audio_output_plugin.init * @param param the configuration section, or NULL if there is * no configuration - * @param error_r location to store the error occuring, or + * @param error_r location to store the error occurring, or * NULL to ignore errors * @return a mixer object, or NULL on error */ @@ -56,7 +56,7 @@ struct mixer_plugin { /** * Open mixer device * - * @param error_r location to store the error occuring, or + * @param error_r location to store the error occurring, or * NULL to ignore errors * @return true on success, false on error */ @@ -70,7 +70,7 @@ struct mixer_plugin { /** * Reads the current volume. * - * @param error_r location to store the error occuring, or + * @param error_r location to store the error occurring, or * NULL to ignore errors * @return the current volume (0..100 including) or -1 if * unavailable or on error (error_r set, mixer will be closed) @@ -80,7 +80,7 @@ struct mixer_plugin { /** * Sets the volume. * - * @param error_r location to store the error occuring, or + * @param error_r location to store the error occurring, or * NULL to ignore errors * @param volume the new volume (0..100 including) * @return true on success, false on error diff --git a/src/output_plugin.h b/src/output_plugin.h index 1611a3cb..72b519d1 100644 --- a/src/output_plugin.h +++ b/src/output_plugin.h @@ -52,7 +52,7 @@ struct audio_output_plugin { * none is configured * @param param the configuration section, or NULL if there is * no configuration - * @param error location to store the error occuring, or NULL + * @param error location to store the error occurring, or NULL * to ignore errors * @return NULL on error, or an opaque pointer to the plugin's * data @@ -72,7 +72,7 @@ struct audio_output_plugin { * fail: if an error occurs during that, it should be reported * by the open() method. * - * @param error_r location to store the error occuring, or + * @param error_r location to store the error occurring, or * NULL to ignore errors * @return true on success, false on error */ @@ -89,7 +89,7 @@ struct audio_output_plugin { * * @param audio_format the audio format in which data is going * to be delivered; may be modified by the plugin - * @param error location to store the error occuring, or NULL + * @param error location to store the error occurring, or NULL * to ignore errors */ bool (*open)(void *data, struct audio_format *audio_format, @@ -119,7 +119,7 @@ struct audio_output_plugin { /** * Play a chunk of audio data. * - * @param error location to store the error occuring, or NULL + * @param error location to store the error occurring, or NULL * to ignore errors * @return the number of bytes played, or 0 on error */ diff --git a/src/pcm_convert.h b/src/pcm_convert.h index 5f113439..6dbd7541 100644 --- a/src/pcm_convert.h +++ b/src/pcm_convert.h @@ -75,7 +75,7 @@ void pcm_convert_deinit(struct pcm_convert_state *state); * @param src_size the size of #src in bytes * @param dest_format the requested destination audio format * @param dest_size_r returns the number of bytes of the destination buffer - * @param error_r location to store the error occuring, or NULL to + * @param error_r location to store the error occurring, or NULL to * ignore errors * @return the destination buffer, or NULL on error */ diff --git a/src/player_control.c b/src/player_control.c index 0f73c929..51420a43 100644 --- a/src/player_control.c +++ b/src/player_control.c @@ -281,7 +281,7 @@ pc_get_error_message(struct player_control *pc) return g_strdup("problems opening audio device"); case PLAYER_ERROR_SYSTEM: - return g_strdup("system error occured"); + return g_strdup("system error occurred"); case PLAYER_ERROR_UNKTYPE: uri = pc_errored_song_uri(pc); diff --git a/src/player_thread.c b/src/player_thread.c index 48225706..d47c5c85 100644 --- a/src/player_thread.c +++ b/src/player_thread.c @@ -112,7 +112,7 @@ struct player { * output thread. This attribute is only used if * audio_output_all_get_elapsed_time() didn't return a usable * value; the output thread can estimate the elapsed time more - * precisly. + * precisely. */ float elapsed_time; }; diff --git a/src/playlist/lastfm_playlist_plugin.c b/src/playlist/lastfm_playlist_plugin.c index 41332f55..5c803cd9 100644 --- a/src/playlist/lastfm_playlist_plugin.c +++ b/src/playlist/lastfm_playlist_plugin.c @@ -139,7 +139,7 @@ lastfm_get(const char *url) * Ini-style value fetcher. * @param response data through which to search. * @param name name of value to search for. - * @return value for param name in param reponse or NULL on error. Free with g_free. + * @return value for param name in param response or NULL on error. Free with g_free. */ static char * lastfm_find(const char *response, const char *name) diff --git a/src/server_socket.h b/src/server_socket.h index b02b2f4c..e5777f7b 100644 --- a/src/server_socket.h +++ b/src/server_socket.h @@ -47,7 +47,7 @@ server_socket_close(struct server_socket *ss); * Add a listener on a port on all interfaces. * * @param port the TCP port - * @param error_r location to store the error occuring, or NULL to + * @param error_r location to store the error occurring, or NULL to * ignore errors * @return true on success */ @@ -61,7 +61,7 @@ server_socket_add_port(struct server_socket *ss, unsigned port, * * @param hostname the host name to be resolved * @param port the TCP port - * @param error_r location to store the error occuring, or NULL to + * @param error_r location to store the error occurring, or NULL to * ignore errors * @return true on success */ @@ -73,7 +73,7 @@ server_socket_add_host(struct server_socket *ss, const char *hostname, * Add a listener on a Unix domain socket. * * @param path the absolute socket path - * @param error_r location to store the error occuring, or NULL to + * @param error_r location to store the error occurring, or NULL to * ignore errors * @return true on success */ diff --git a/src/socket_util.h b/src/socket_util.h index c53a45cf..3ebf4084 100644 --- a/src/socket_util.h +++ b/src/socket_util.h @@ -37,7 +37,7 @@ struct sockaddr; * * @param sa the sockaddr struct * @param length the length of #sa in bytes - * @param error location to store the error occuring, or NULL to + * @param error location to store the error occurring, or NULL to * ignore errors */ char * @@ -53,7 +53,7 @@ sockaddr_to_string(const struct sockaddr *sa, size_t length, GError **error); * @param address the address to listen on * @param address_length the size of #address * @param backlog the backlog parameter for the listen() system call - * @param error location to store the error occuring, or NULL to + * @param error location to store the error occurring, or NULL to * ignore errors * @return the socket file descriptor or -1 on error */ diff --git a/src/song_save.h b/src/song_save.h index efa286c5..1aaa7642 100644 --- a/src/song_save.h +++ b/src/song_save.h @@ -40,7 +40,7 @@ songvec_save(FILE *fp, const struct songvec *sv); * Loads a song from the input file. Reading stops after the * "song_end" line. * - * @param error_r location to store the error occuring, or NULL to + * @param error_r location to store the error occurring, or NULL to * ignore errors * @return true on success, false on error */ diff --git a/src/song_update.c b/src/song_update.c index 148ca0d3..e2a845ee 100644 --- a/src/song_update.c +++ b/src/song_update.c @@ -190,7 +190,7 @@ song_file_update_inarchive(struct song *song) tag_free(song->tag); //accept every file that has music suffix - //because we dont support tag reading throught + //because we don't support tag reading through //input streams song->tag = tag_new(); diff --git a/src/sticker.h b/src/sticker.h index 0dc74b16..5545206a 100644 --- a/src/sticker.h +++ b/src/sticker.h @@ -51,7 +51,7 @@ struct sticker; /** * Opens the sticker database (if path is not NULL). * - * @param error_r location to store the error occuring, or NULL to + * @param error_r location to store the error occurring, or NULL to * ignore errors * @return true on success, false on error */ diff --git a/src/stored_playlist.h b/src/stored_playlist.h index 0eaf64d4..b1fdb6f8 100644 --- a/src/stored_playlist.h +++ b/src/stored_playlist.h @@ -51,7 +51,7 @@ spl_valid_name(const char *name_utf8); /** * Returns a list of stored_playlist_info struct pointers. Returns - * NULL if an error occured. + * NULL if an error occurred. */ GPtrArray * spl_list(void); -- cgit v1.2.3