From: Ted Percival Date: Fri, 28 Sep 2007 16:34:49 +0000 (+0000) Subject: Copyediting / spelling / grammar X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=0fa82e3aca0b80504e50016d1661bdcb4b429360;p=catta Copyediting / spelling / grammar git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1547 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- diff --git a/avahi-autoipd/iface.h b/avahi-autoipd/iface.h index 017c90d..e3f913e 100644 --- a/avahi-autoipd/iface.h +++ b/avahi-autoipd/iface.h @@ -40,7 +40,7 @@ void iface_done(void); /* Deduce the initial state of our state machine. If a routable * address is configured for the interface, *state should be set to - * STATE_SLEEPING., otherwide STATE_START */ + * STATE_SLEEPING, otherwise STATE_START */ int iface_get_initial_state(State *state); diff --git a/avahi-autoipd/main.c b/avahi-autoipd/main.c index 9e0b9e8..d4b9b6d 100644 --- a/avahi-autoipd/main.c +++ b/avahi-autoipd/main.c @@ -1011,7 +1011,7 @@ static int drop_privs(void) { #elif defined(HAVE_SETREGID) r = setregid(gr->gr_gid, gr->gr_gid); #else -#error "No API to drop priviliges" +#error "No API to drop privileges" #endif if (r < 0) { @@ -1027,7 +1027,7 @@ static int drop_privs(void) { #elif defined(HAVE_SETREUID) r = setreuid(pw->pw_uid, pw->pw_uid); #else -#error "No API to drop priviliges" +#error "No API to drop privileges" #endif if (r < 0) { diff --git a/avahi-common/address.h b/avahi-common/address.h index 5c2f580..6023a03 100644 --- a/avahi-common/address.h +++ b/avahi-common/address.h @@ -75,7 +75,7 @@ typedef struct AvahiAddress { union { AvahiIPv6Address ipv6; /**< Address when IPv6 */ AvahiIPv4Address ipv4; /**< Address when IPv4 */ - uint8_t data[1]; /**< Type independant data field */ + uint8_t data[1]; /**< Type-independent data field */ } data; } AvahiAddress; diff --git a/avahi-common/cdecl.h b/avahi-common/cdecl.h index b08e2a0..fc89197 100644 --- a/avahi-common/cdecl.h +++ b/avahi-common/cdecl.h @@ -26,13 +26,13 @@ #ifdef __cplusplus /** If using C++ this macro enables C mode, otherwise does nothing */ #define AVAHI_C_DECL_BEGIN extern "C" { -/** If using C++ this macros switches back to C++ mode, otherwise does nothing */ +/** If using C++ this macro switches back to C++ mode, otherwise does nothing */ #define AVAHI_C_DECL_END } #else /** If using C++ this macro enables C mode, otherwise does nothing */ #define AVAHI_C_DECL_BEGIN -/** If using C++ this macros switches back to C++ mode, otherwise does nothing */ +/** If using C++ this macro switches back to C++ mode, otherwise does nothing */ #define AVAHI_C_DECL_END #endif diff --git a/avahi-common/defs.h b/avahi-common/defs.h index eabe4cd..a74fd6a 100644 --- a/avahi-common/defs.h +++ b/avahi-common/defs.h @@ -35,15 +35,15 @@ * * \li avahi-core: an API for embedding a complete mDNS/DNS-SD stack * into your software. This is intended for developers of embedded - * ampliances only. We dissuade from using this API in normal desktop + * appliances only. We dissuade from using this API in normal desktop * applications since it is not a good idea to run multiple mDNS * stacks simultaneously on the same host. * \li the D-Bus API: an extensive D-Bus interface for browsing and * registering mDNS/DNS-SD services using avahi-daemon. We recommend - * to use this API for software written in any language but - * C. (i.e. Python) + * using this API for software written in any language other than + * C (e.g. Python). * \li avahi-client: a simplifying C wrapper around the D-Bus API. We - * recommend to use this API in C or C++ progams. The D-Bus internals + * recommend using this API in C or C++ progams. The D-Bus internals * are hidden completely. * * All three APIs are very similar, however avahi-core is the most powerful. @@ -108,7 +108,7 @@ * * \section event_loop Event Loop Abstraction * - * Avahi uses a simple event loop abstraction laye. A table AvahiPoll + * Avahi uses a simple event loop abstraction layer. A table AvahiPoll * which contains function pointers for user defined timeout and I/O * condition event source implementations needs to be passed to * avahi_client_new(). An adapter for this abstraction layer is @@ -128,7 +128,7 @@ * be established. * - Remove your services when the server enters * AVAHI_SERVER_COLLISION or AVAHI_SERVER_REGISTERING state. Your - * services may no be reachable anymore since the local host name is + * services may not be reachable anymore since the local host name is * no longer established or is currently in the process of being * established. * - When registering services, use the following algorithm: @@ -152,7 +152,7 @@ * AVAHI_PUBLISH_UPDATE when changing the service name! Renaming a * DNS-SD service is identical to deleting and creating a new one, and * that's exactly what you should do in that case. First call - * avahi_entry_group_reset() to remove it and than readd it normally. + * avahi_entry_group_reset() to remove it and then read it normally. * * \section good_browse How to Browse for Services * @@ -183,7 +183,7 @@ * AvahiClient object in that case and reconnect to the server anew - * again with passing AVAHI_CLIENT_NO_FAIL to avahi_client_new(). * - * We encourage to implement this in all software where service + * We encourage implementing this in all software where service * discovery is not an integral part of application. e.g. use it in * all kinds of background daemons, but not in software like iChat * compatible IM software. @@ -282,7 +282,7 @@ typedef enum { typedef enum { AVAHI_BROWSER_NEW, /**< The object is new on the network */ AVAHI_BROWSER_REMOVE, /**< The object has been removed from the network */ - AVAHI_BROWSER_CACHE_EXHAUSTED, /**< One-time event, to notify the user that all entries from the caches have been send */ + AVAHI_BROWSER_CACHE_EXHAUSTED, /**< One-time event, to notify the user that all entries from the caches have been sent */ AVAHI_BROWSER_ALL_FOR_NOW, /**< One-time event, to notify the user that more records will probably not show up in the near future, i.e. all cache entries have been read and all static servers been queried */ AVAHI_BROWSER_FAILURE /**< Browsing failed due to some reason which can be retrieved using avahi_server_errno()/avahi_client_errno() */ } AvahiBrowserEvent; diff --git a/avahi-common/error.h b/avahi-common/error.h index 3e014c2..3e4d25f 100644 --- a/avahi-common/error.h +++ b/avahi-common/error.h @@ -88,7 +88,7 @@ enum { AVAHI_ERR_NOT_PERMITTED = -50, /**< Operation not permitted */ AVAHI_ERR_INVALID_ARGUMENT = -51, /**< Invalid argument */ AVAHI_ERR_IS_EMPTY = -52, /**< Is empty */ - AVAHI_ERR_NO_CHANGE = -53, /**< The requested operation is invalid because redundant */ + AVAHI_ERR_NO_CHANGE = -53, /**< The requested operation is invalid because it is redundant */ /**** **** IF YOU ADD A NEW ERROR CODE HERE, PLEASE DON'T FORGET TO ADD diff --git a/avahi-common/strlst.h b/avahi-common/strlst.h index 119e416..8d827d6 100644 --- a/avahi-common/strlst.h +++ b/avahi-common/strlst.h @@ -110,7 +110,7 @@ AvahiStringList *avahi_string_list_add_many_va(AvahiStringList *r, va_list va); /** Convert the string list object to a single character string, * seperated by spaces and enclosed in "". avahi_free() the result! This - * function doesn't work well with string that contain NUL bytes. */ + * function doesn't work well with strings that contain NUL bytes. */ char* avahi_string_list_to_string(AvahiStringList *l); /** \cond fulldocs */ diff --git a/avahi-common/thread-watch.h b/avahi-common/thread-watch.h index e603293..92b5dfc 100644 --- a/avahi-common/thread-watch.h +++ b/avahi-common/thread-watch.h @@ -37,7 +37,7 @@ typedef struct AvahiThreadedPoll AvahiThreadedPoll; * AvahiSimplePoll, but will not start the helper thread. \since 0.6.4 */ AvahiThreadedPoll *avahi_threaded_poll_new(void); -/** Free an event loop object. Ths will stop the associated evet loop +/** Free an event loop object. This will stop the associated event loop * thread (if it is running). \since 0.6.4 */ void avahi_threaded_poll_free(AvahiThreadedPoll *p); diff --git a/avahi-common/timeval.c b/avahi-common/timeval.c index 2d0d693..edab241 100644 --- a/avahi-common/timeval.c +++ b/avahi-common/timeval.c @@ -115,7 +115,7 @@ struct timeval *avahi_elapse_time(struct timeval *tv, unsigned msec, unsigned ji /* We use the same jitter for 10 seconds. That way our * time events elapse in bursts which has the advantage that - * packet data can be aggegrated better */ + * packet data can be aggregated better */ avahi_timeval_add(tv, (AvahiUsec) (jitter*1000.0*r/(RAND_MAX+1.0))); } diff --git a/avahi-common/watch.h b/avahi-common/watch.h index 80ed888..31adad7 100644 --- a/avahi-common/watch.h +++ b/avahi-common/watch.h @@ -55,7 +55,7 @@ typedef void (*AvahiWatchCallback)(AvahiWatch *w, int fd, AvahiWatchEvent event, typedef void (*AvahiTimeoutCallback)(AvahiTimeout *t, void *userdata); /** Defines an abstracted event polling API. This may be used to - connect Avahi to other main loops. This is losely based on Unix + connect Avahi to other main loops. This is loosely based on Unix poll(2). A consumer will call watch_new() for all file descriptors it wants to listen for events on. In addition he can call timeout_new() to define time based events .*/ @@ -86,7 +86,7 @@ struct AvahiPoll { AvahiTimeout* (*timeout_new)(const AvahiPoll *api, const struct timeval *tv, AvahiTimeoutCallback callback, void *userdata); /** Update the absolute expiration time for a timeout, If tv is - * null, the timeout is disabled. It is safe to call this function from an AvahiTimeoutCallback */ + * NULL, the timeout is disabled. It is safe to call this function from an AvahiTimeoutCallback */ void (*timeout_update)(AvahiTimeout *, const struct timeval *tv); /** Free a timeout. It is safe to call this function from an AvahiTimeoutCallback */ diff --git a/avahi-daemon/caps.c b/avahi-daemon/caps.c index 2d0f39a..3c9f50f 100644 --- a/avahi-daemon/caps.c +++ b/avahi-daemon/caps.c @@ -39,8 +39,8 @@ int avahi_caps_reduce(void) { static cap_value_t cap_values[] = { CAP_SYS_CHROOT, CAP_SETUID, CAP_SETGID }; /* Let's reduce our caps to the minimum set and tell Linux to keep - * them accross setuid(). This is called before we droppped - * priviliges. */ + * them across setuid(). This is called before we drop + * privileges. */ caps = cap_init(); assert(caps); @@ -55,7 +55,7 @@ int avahi_caps_reduce(void) { } cap_free(caps); - /* Retain capabilities accros setuid() */ + /* Retain capabilities across setuid() */ if (prctl(PR_SET_KEEPCAPS, 1, 0, 0, 0) < 0) { avahi_log_error("prctl(PR_SET_KEEPCAPS) failed: %s", strerror(errno)); ret = -1; @@ -70,8 +70,8 @@ int avahi_caps_reduce2(void) { static cap_value_t cap_values[] = { CAP_SYS_CHROOT }; /* Reduce our caps to the bare minimum and tell Linux not to keep - * them across setuid(). This is called after we dropped - * privilige. */ + * them across setuid(). This is called after we drop + * privileges. */ /* No longer retain caps across setuid() */ if (prctl(PR_SET_KEEPCAPS, 0, 0, 0, 0) < 0) { diff --git a/avahi-daemon/dbus-protocol.c b/avahi-daemon/dbus-protocol.c index 3259355..d61935a 100644 --- a/avahi-daemon/dbus-protocol.c +++ b/avahi-daemon/dbus-protocol.c @@ -134,7 +134,7 @@ static Client *client_get(const char *name, int create) { if (server->n_clients >= CLIENTS_MAX) return NULL; - /* If not existant yet, create a new entry */ + /* If not existent yet, create a new entry */ client = avahi_new(Client, 1); client->id = server->current_id++; client->name = avahi_strdup(name); diff --git a/avahi-daemon/main.c b/avahi-daemon/main.c index 42b3221..d8f9aa6 100644 --- a/avahi-daemon/main.c +++ b/avahi-daemon/main.c @@ -1177,7 +1177,7 @@ static int drop_root(void) { #elif defined(HAVE_SETREGID) r = setregid(gr->gr_gid, gr->gr_gid); #else -#error "No API to drop priviliges" +#error "No API to drop privileges" #endif if (r < 0) { @@ -1193,7 +1193,7 @@ static int drop_root(void) { #elif defined(HAVE_SETREUID) r = setreuid(pw->pw_uid, pw->pw_uid); #else -#error "No API to drop priviliges" +#error "No API to drop privileges" #endif if (r < 0) { diff --git a/avahi-daemon/simple-protocol.c b/avahi-daemon/simple-protocol.c index 04b07c7..33e5db3 100644 --- a/avahi-daemon/simple-protocol.c +++ b/avahi-daemon/simple-protocol.c @@ -472,7 +472,7 @@ int simple_protocol_setup(const AvahiPoll *poll_api) { strncpy(sa.sun_path, AVAHI_SOCKET, sizeof(sa.sun_path)-1); /* We simply remove existing UNIX sockets under this name. The - Avahi daemons makes sure that it runs only once on a host, + Avahi daemon makes sure that it runs only once on a host, therefore sockets that already exist are stale and may be removed without any ill effects */