Skip to content

Commit 5b291a3

Browse files
authored
Update kryptinfo.c
1 parent 948efcb commit 5b291a3

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

kryptinfo.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44

55
int main(void)
66
{
7-
int intans;
8-
int sentakusi; // システムの情報を表示するプログラム
7+
int intanswer;
8+
int options; // システムの情報を表示するプログラム
99
char answer[1024]; // コマンドを選ぶ選択肢 char配列なのは数字以外の文字が入力されてもバグを起こさないようにするため
1010
char yesno[1024]; // こちらは最後にもう一度選ぶかどうかをyかnで答える
1111
do {
1212
do {
13-
sentakusi = 0;
13+
options = 0;
1414
// 選択肢を表示
1515
fputs("\n\n\n",stdout);
1616
printf("1:dmesg as superuser\n2:lsb_release -a\n3:lspci\n4:uname -a\n5:fastfetch");
@@ -25,12 +25,12 @@ int main(void)
2525
; // Do nothing
2626
} else {
2727
printf("1~5以外を指定しています\n");
28-
sentakusi = 1;
28+
options = 1;
2929
}
30-
} while(sentakusi != 0);
31-
intans = atoi(answer);
30+
} while(options != 0);
31+
intanswer = atoi(answer);
3232

33-
switch(intans) {
33+
switch(intanswer) {
3434
case 1:
3535
system("sudo dmesg");
3636
break;

0 commit comments

Comments
 (0)