From ba10d9b4d716a76c9a51feb8ed4934aacb5156ed Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 22 Feb 2026 14:54:18 +0100 Subject: m fixes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/blueshift_iccprofile.c | 14 +++++++------- src/weather.py | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/blueshift_iccprofile.c b/src/blueshift_iccprofile.c index 806f47b..27c90bf 100644 --- a/src/blueshift_iccprofile.c +++ b/src/blueshift_iccprofile.c @@ -70,9 +70,9 @@ int main(int argc, char **argv) /* This acquires a connection to the X display indicated by the DISPLAY - environ variable, or as indicated + environment variable, or as indicated by the first command line argument - if existent. */ + if present. */ if (argc > 1) display = *(argv + 1); connection = xcb_connect(display, NULL); @@ -95,7 +95,7 @@ int main(int argc, char **argv) xcb_atom_t* atoms; xcb_atom_t* atoms_end; - /* We have acquired the screen, got to next in preperate for next iteration. */ + /* We have acquired the screen; proceed to prepare for the next iteration. */ xcb_screen_next(&iter); @@ -153,7 +153,7 @@ int main(int argc, char **argv) /* Extract the atom name from the data structure that holds it. */ name_ = xcb_get_atom_name_name(name_reply); - /* As well as the length of the name; it is not NUL-termianted.*/ + /* As well as the length of the name; it is not NUL-terminated. */ len = (uint32_t)xcb_get_atom_name_name_length(name_reply); /* NUL-terminate the atom name, */ @@ -190,7 +190,7 @@ int main(int argc, char **argv) /* Not numerical: did not match */ goto monitor_bad; } - /* Convert from negative to possitive. */ + /* Convert from negative to positive. */ monitor = -monitor; /* Check that it is not zero, zero is not a valid index, it should just be @@ -199,9 +199,9 @@ int main(int argc, char **argv) goto monitor_ok; monitor_bad: - /* Atom name ultimately did not match the, pattern + /* Atom name ultimately did not match the pattern; ignore it, it may be for something else, but it - is propably just invalid. */ + is probably just invalid. */ continue; } else diff --git a/src/weather.py b/src/weather.py index 17a8638..80131b8 100644 --- a/src/weather.py +++ b/src/weather.py @@ -25,7 +25,7 @@ def weather(station = None, downloader = None): Get a brief weather report Airports should publish METAR (Meteorological Aerodrome Report) reports at XX:20 and XX:50, - it can presumable take some time before the collection server we use (weather.noaa.gov) have + it can presumably take some time before the collection server we use (weather.noaa.gov) have received it. Additionally some airports do not update while closed, and updates while closed are less accurate. -- cgit v1.2.3-70-g09d2