View | Details | Raw Unified | Return to bug 27010
Collapse All | Expand All

(-)kbdcontrol.c (-3 / +3 lines)
Lines 888-894 Link Here
888
		pitch = strtol(opt, &v1, 0);
888
		pitch = strtol(opt, &v1, 0);
889
		if ((pitch < 0) || (*opt == '\0') || (*v1 != '\0')) {
889
		if ((pitch < 0) || (*opt == '\0') || (*v1 != '\0')) {
890
badopt:
890
badopt:
891
			warnx("argument to -b must be DURATION.PITCH");
891
			warnx("argument to -b must be duration.pitch or [quiet.]visual|normal|off");
892
			return;
892
			return;
893
		}
893
		}
894
		if (pitch != 0)
894
		if (pitch != 0)
Lines 930-936 Link Here
930
		repeat = strtol(opt, &v1, 0);
930
		repeat = strtol(opt, &v1, 0);
931
		if ((repeat < 0) || (*opt == '\0') || (*v1 != '\0')) {
931
		if ((repeat < 0) || (*opt == '\0') || (*v1 != '\0')) {
932
badopt:
932
badopt:
933
			warnx("argument to -r must be delay.repeat");
933
			warnx("argument to -r must be delay.repeat or slow|normal|fast");
934
			return;
934
			return;
935
		}
935
		}
936
		for (n = 0; n < ndelays - 1; n++)
936
		for (n = 0; n < ndelays - 1; n++)
Lines 1065-1071 Link Here
1065
usage()
1065
usage()
1066
{
1066
{
1067
	fprintf(stderr, "%s\n%s\n%s\n",
1067
	fprintf(stderr, "%s\n%s\n%s\n",
1068
"usage: kbdcontrol [-dFKix] [-b  duration.pitch | [quiet.]belltype]",
1068
"usage: kbdcontrol [-dFKix] [-b duration.pitch | [quiet.]belltype]",
1069
"                  [-r delay.repeat | speed] [-l mapfile] [-f # string]",
1069
"                  [-r delay.repeat | speed] [-l mapfile] [-f # string]",
1070
"                  [-h size] [-k device] [-L mapfile]");
1070
"                  [-h size] [-k device] [-L mapfile]");
1071
	exit(1);
1071
	exit(1);

Return to bug 27010