mirror of
https://github.com/javalsai/lidm.git
synced 2025-08-31 18:38:00 +02:00
chore: use size_t
for indexing and iterating
This commit is contained in:
6
src/ui.c
6
src/ui.c
@@ -500,15 +500,15 @@ static void print_passwd(struct uint_point origin, uint length, bool err) {
|
||||
}
|
||||
|
||||
static void print_empty_row(uint w, uint n, char *edge1, char *edge2) {
|
||||
for (uint i = 0; i < n; i++) {
|
||||
for (size_t i = 0; i < n; i++) {
|
||||
printf("%s\x1b[%dC%s\x1b[%dD\x1b[1B", edge1, w, edge2, w + 2);
|
||||
}
|
||||
}
|
||||
|
||||
static void print_row(uint w, uint n, char *edge1, char *edge2, char *filler) {
|
||||
for (uint i = 0; i < n; i++) {
|
||||
for (size_t i = 0; i < n; i++) {
|
||||
printf("%s", edge1);
|
||||
for (uint i = 0; i < w; i++) {
|
||||
for (size_t i = 0; i < w; i++) {
|
||||
printf("%s", filler);
|
||||
}
|
||||
printf("%s\x1b[%dD\x1b[1B", edge2, w + 2);
|
||||
|
Reference in New Issue
Block a user