Commit Diff


commit - 02114118307cdfb8d94f5ee5621eae57627a472c
commit + cadc7a9df29cc4cbcc07dacc929a8ee39fdb8c13
blob - cd9fa6854589287ec930e4907a7911901234ed76
blob + cc9c78c1f1cdcea430644132546d71fe1aa03b9c
--- mymenu.c
+++ mymenu.c
@@ -158,9 +158,6 @@ typedef union {
 	uint32_t v;
 } rgba_t;
 
-extern char *optarg;
-extern int optind;
-
 /* Return a newly allocated (and empty) completion list */
 struct completions *
 compls_new(size_t length)
@@ -1370,7 +1367,7 @@ loop(struct rendering *r, char **text, int *textlen, s
 			case DEL_LINE: {
 				int i;
 				for (i = 0; i < *textlen; ++i)
-					*(*text + i) = 0;
+					(*text)[i] = 0;
 				update_completions(cs, *text, lines, vlines,
 				    r->first_selected);
 				r->offset = 0;