X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Fgetanswer.c;h=9bac0e5295743e1cd0dae867adb22bdd7b4c88b4;hb=0c9207459097089a931399ff7d384884288bc4ac;hp=47072556ca75aa1f67f1be4575468c76c7310b81;hpb=ced6090a330d3d83d0bce709f756aa3d7d65fea4;p=mmh diff --git a/sbr/getanswer.c b/sbr/getanswer.c index 4707255..9bac0e5 100644 --- a/sbr/getanswer.c +++ b/sbr/getanswer.c @@ -11,12 +11,12 @@ int -getanswer (char *prompt) +getanswer(char *prompt) { static int interactive = -1; if (interactive < 0) - interactive = isatty (fileno (stdin)) ? 1 : 0; + interactive = isatty(fileno(stdin)) ? 1 : 0; - return (interactive ? gans (prompt, anoyes) : 1); + return (interactive ? gans(prompt, anoyes) : 1); }