Skip to content

Commit

Permalink
Merge pull request #223 from timgates42/bugfix_typos
Browse files Browse the repository at this point in the history
docs: Fix a few typos
  • Loading branch information
FedeDP authored Aug 23, 2021
2 parents 5007420 + 14ef4d0 commit 8047e69
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/conf/opts.c
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ static void parse_cmd(int argc, char *const argv[], char *conf_file, size_t size
}
/*
* poptGetNextOpt returns -1 when the final argument has been parsed
* otherwise an error occured
* otherwise an error occurred
*/
poptFreeContext(pc);
if (rc != -1) {
Expand Down
2 changes: 1 addition & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ static void init(int argc, char *argv[]) {
* thus one can override a global module (placed in /usr/share/clight/modules.d/)
* by creating a module with same name in $HOME.
*
* Clight internal modules cannot be overriden.
* Clight internal modules cannot be overridden.
*/
load_user_modules(LOCAL);
load_user_modules(GLOBAL);
Expand Down
2 changes: 1 addition & 1 deletion src/modules/interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ static void init(void) {
if (r < 0) {
WARN("Failed to create %s dbus interface: %s\n", bus_interface, strerror(-r));
} else {
/* Subscribe to any topic expept REQUESTS */
/* Subscribe to any topic except REQUESTS */
m_subscribe("^[^Req].*");

/** org.freedesktop.ScreenSaver API **/
Expand Down
2 changes: 1 addition & 1 deletion src/modules/pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ static bool evaluate() {
static void receive(const msg_t *const msg, UNUSED const void* userdata) {
switch (MSG_TYPE()) {
case FD_UPD: {
/* We are reading a message delyaed of conf.resumedelay */
/* We are reading a message delayed of conf.resumedelay */
message_t *suspend_msg = (message_t *)msg->fd_msg->userptr;
read_timer(delayed_resume_fd);
M_PUB(suspend_msg);
Expand Down
6 changes: 3 additions & 3 deletions src/public.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ enum mod_msg_types {
IN_EVENT_UPD, // Subscribe to receive new InEvent states
SUNRISE_UPD, // Subscribe to receive new Sunrise times
SUNSET_UPD, // Subscribe to receive new Sunset times
TEMP_UPD, // Subscribe to receive new gamma temperatures. NOTE: for smooth changes, a first TEMP_UPD will be emitteed with target temp and smooth params, then for each individual step TEMP_UPD will be emitted too
TEMP_UPD, // Subscribe to receive new gamma temperatures. NOTE: for smooth changes, a first TEMP_UPD will be emitted with target temp and smooth params, then for each individual step TEMP_UPD will be emitted too
AMBIENT_BR_UPD, // Subscribe to receive new ambient brightness values
BL_UPD, // Subscribe to receive new backlight level values. NOTE: for smooth changes, a first BL_UPD will be emitteed with target temp and smooth params, then for each individual step BL_UPD will be emitted too
BL_UPD, // Subscribe to receive new backlight level values. NOTE: for smooth changes, a first BL_UPD will be emitted with target temp and smooth params, then for each individual step BL_UPD will be emitted too
KBD_BL_UPD, // Subscribe to receive new keyboard backlight values
SCR_BL_UPD, // Subscribe to receive new screen-emitted brightness values
LOCATION_REQ, // Publish to set a new location
Expand Down Expand Up @@ -108,7 +108,7 @@ enum mod_msg_types {
SENS_UPD, // Subscribe to receive "SensorAvail" states
NEXT_DAYEVT_UPD, // Subscribe to receive notifications about next day event (ie: sunrise or sunset)
SUSPEND_UPD, // Subscribe to receive new system suspended states
SUSPEND_REQ, // Publish to set a new system suspend state (this won't suspend your system! It jsut 'fakes' a suspended state)
SUSPEND_REQ, // Publish to set a new system suspend state (this won't suspend your system! It just 'fakes' a suspended state)
KBD_TO_REQ, // Publish to require a new keyboard timeout
AMB_GAMMA_REQ, // Publish to require a new AmbientGamma state
KBD_CURVE_REQ, // Publish to set a new keyboard backlight curve for given ac state
Expand Down

0 comments on commit 8047e69

Please sign in to comment.