summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2026-07-19 20:27:52 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2026-07-19 20:27:52 +0200
commit9f08f4173cf0680410b7eb95e5b32000d56320d0 (patch)
tree6eed6c13d90b16620cf438f32cb319f17d594e06 /scripts
parentf1df9088d8def50febfe3af2597a94c027348879 (diff)
downloadconfig-9f08f4173cf0680410b7eb95e5b32000d56320d0.tar.gz
config-9f08f4173cf0680410b7eb95e5b32000d56320d0.zip
Fix stdout flushing
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/alg2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/alg b/scripts/alg
index 54839b4..99becd8 100755
--- a/scripts/alg
+++ b/scripts/alg
@@ -471,9 +471,9 @@ int edit(struct node *n) {
471 int d = 1; 471 int d = 1;
472 if (!is_terminal(n)) { 472 if (!is_terminal(n)) {
473 printf("Confirm delete node "); 473 printf("Confirm delete node ");
474 fflush(stdout);
475 write_key(stdout, n->child[i].key); 474 write_key(stdout, n->child[i].key);
476 printf("? [y/N] "); 475 printf("? [y/N] ");
476 fflush(stdout);
477 fgets(line, LINEMAXLEN, stdin); 477 fgets(line, LINEMAXLEN, stdin);
478 d = line[0] == 'y' || line[0] == 'Y'; 478 d = line[0] == 'y' || line[0] == 'Y';
479 } 479 }

Generated with cgit - Back to sebastiano.tronto.net