aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README18
-rw-r--r--config.mk4
-rw-r--r--unstickpixels.118
-rw-r--r--unstickpixels.c29
4 files changed, 35 insertions, 34 deletions
diff --git a/README b/README
index 7bbfd2c..182b78a 100644
--- a/README
+++ b/README
@@ -12,7 +12,7 @@ DESCRIPTION
You should disable powersaving on your monitors and disable
the screensaver whilst running this program, or otherwise
- make sure that screen loop is always displayed.
+ make sure that the screen loop is always displayed.
Running this program for a number of hours, especially if
combined with massaging defective dots, may heal defective
@@ -20,11 +20,11 @@ DESCRIPTION
stuck dots are more probable to get fixed.
You must not run this program if you are epileptic. Seek
- someone else how can do it for you.
+ someone else who can do it for you.
unstickpixels uses the graphics cards' colour lookup tables
to switch the colour displayed on the screen. If your
- computers does not supports this, the option -v may help,
+ computer does not support this, the option -v may help,
it will use the framebuffer indirectly, via the terminal.
Unless -v is used, unstickpixels runs both in X and on the
Linux VT.
@@ -33,14 +33,14 @@ OPTIONS
-v Use the Linux VT instead of the graphics cards'
colour lookup tables (CLUT). This requires that the
program runs under the Linux VT, otherwise known
- as the TTY. This may not work too great one all
+ as the TTY. This may not work too well on all
graphics cards, some very expensive graphics cards
- are really bad. NVIDIA is known case of this,
- why the CLUT utilisation was added.
+ are really bad. NVIDIA is a known case of this,
+ which is why the CLUT utilisation was added.
If you are using a graphical environment and do not
know how to access the Linux VT, here is how you do
- it: press Ctrl+Alt+F1, if this does not open non-graphical
+ it: press Ctrl+Alt+F1, if this does not open a non-graphical
login screen, press Alt+Right until you get one. To
get back to graphical environment, hold down Alt+Right
until it appears.
@@ -59,7 +59,7 @@ RATIONALE
* Requires a graphics card and video player that can
play back the video in full screen mode efficiently.
- * Requires X or a video player than can play video
+ * Requires X or a video player that can play video
outside X efficiently.
* Requires the video to be downloaded if it was uploaded
@@ -69,7 +69,7 @@ RATIONALE
* One video playback is required per defective monitor.
SEE ALSO
- No similar or otherwise related programs known, please
+ No similar or otherwise related programs are known, please
file a bug if you know any.
There are some similar works in form of videos available
diff --git a/config.mk b/config.mk
index 71c611f..a0900df 100644
--- a/config.mk
+++ b/config.mk
@@ -1,8 +1,8 @@
PREFIX = /usr
MANPREFIX = $(PREFIX)/share/man
-CC = cc
+CC = c99
CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700
-CFLAGS = -std=c99 -Wall -O2
+CFLAGS =
LDFLAGS = -s -lgamma
diff --git a/unstickpixels.1 b/unstickpixels.1
index f34c46d..92e6a82 100644
--- a/unstickpixels.1
+++ b/unstickpixels.1
@@ -23,15 +23,15 @@ dots. Dead dots (always black) are hard to revive, but
stuck dots are more probable to get fixed.
.PP
You must not run this program if you are epileptic. Seek
-someone else how can do it for you.
+someone else who can do it for you.
.PP
.B unstickpixels
uses the graphics cards' colour lookup tables
to switch the colour displayed on the screen. If your
-computers does not supports this, the option
+computer does not support this, the option
.B -v
may help, it will use the framebuffer indirectly, via the
-terminal. Unless
+terminal. Unless
.B -v
is used,
.B unstickpixels
@@ -44,16 +44,16 @@ and on the Linux VT.
Use the Linux VT instead of the graphics cards'
colour lookup tables (CLUT). This requires that the
program runs under the Linux VT, otherwise known
-as the TTY. This may not work too great one all
+as the TTY. This may not work too well on all
graphics cards, some very expensive graphics cards
-are really bad. NVIDIA is known case of this,
-why the CLUT utilisation was added.
+are really bad. NVIDIA is a known case of this,
+which is why the CLUT utilisation was added.
If you are using a graphical environment and do not
know how to access the Linux VT, here is how you do
it: press
.BR Ctrl+Alt+F1 ,
-if this does not open non-graphical login screen, press
+if this does not open a non-graphical login screen, press
.B Alt+Right
until you get one. To get back to graphical environment,
hold down
@@ -76,7 +76,7 @@ play back the video in full screen mode efficiently.
*
Requires
.B X
-or a video player than can play video outside
+or a video player that can play video outside
.B X
efficiently.
.TP
@@ -88,7 +88,7 @@ full screen.
*
One video playback is required per defective monitor.
.SH "SEE ALSO"
-No similar or otherwise related programs known, please
+No similar or otherwise related programmes are known, please
file a bug if you know any.
.TP
There are some similar works in form of videos available
diff --git a/unstickpixels.c b/unstickpixels.c
index e49af2a..1f81115 100644
--- a/unstickpixels.c
+++ b/unstickpixels.c
@@ -17,7 +17,7 @@
#define t(...) do { if (__VA_ARGS__) goto fail; } while (0)
#define WELCOME_MESSAGE\
- "\033[H\033[01;31mWARNING: Do not use this if you have epilepsia.\033[00m\n"\
+ "\033[H\033[01;31mWARNING: Do not use this if you have epilepsy.\033[00m\n"\
"\n"\
"It is recommended to massage the defective dots, whilst\n"\
"running this program.\n"\
@@ -25,19 +25,19 @@
"Press C-c to quit, and Enter to start (C-c will quit).\n"\
"\n"\
"\n"\
- "You should not have to run this program. If the manufacture or\n"\
- "reseller of your monitor refuse to replace or repair the monitor\n"\
- "that was broken, because of manufacturing error, when it was\n"\
- "chiped to you, please consider yelling at the support, threaten\n"\
- "to report the personally because of involvement in organised\n"\
- "crime (not replacing hardware that was chipped broken when you\n"\
- "selled it is a crime, and they do this in an organised fashion\n"\
+ "You should not have to run this programme. If the manufacturer or\n"\
+ "reseller of your monitor refuses to replace or repair the monitor\n"\
+ "that was broken, because of a manufacturing error, when it was\n"\
+ "shipped to you, please consider yelling at the support, threaten\n"\
+ "to report them personally because of involvement in organised\n"\
+ "crime (not replacing hardware that was shipped broken when you\n"\
+ "sold it is a crime, and they do this in an organised fashion\n"\
"to make money), call their executive director persistently at\n"\
- "inconvenient times, report them applicable board for consumer\n"\
- "disputes/complaints or equivalent agency. If this program does\n"\
- "not help, and the manufacture is Packard Bell, or its\n"\
- "supersidiary Acer, tell them that you have tried a program\n"\
- "that was prompted by the complete suckness and incapability\n"\
+ "inconvenient times, report them to the applicable board for consumer\n"\
+ "disputes/complaints or equivalent agency. If this programme does\n"\
+ "not help, and the manufacturer is Packard Bell, or its\n"\
+ "subsidiary Acer, tell them that you have tried a programme\n"\
+ "that was prompted by the complete suckiness and incapability\n"\
"to repair defects that they have agreed to repair. They suck!"
/**
@@ -113,6 +113,7 @@ get_interval(const char *restrict arg, struct timespec *restrict interval, int *
{
char *end;
*nonzero = 1;
+
errno = EINVAL;
t (!isdigit(*arg));
interval->tv_sec = (time_t)(errno = 0, strtol)(arg, &end, 10);
@@ -130,7 +131,7 @@ fail:
/**
- * Wrapper for fork(3) that clocks all signals in the parent.
+ * Wrapper for fork(3) that blocks all signals in the parent.
*
* @return See fork(3).
*/