Update of /cvsroot/monetdb/sql/src/backends/monet5
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv21676
Modified Files:
monetdb.mx
Log Message:
Remove joke, make it formal instead
U monetdb.mx
Index: monetdb.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/backends/monet5/monetdb.mx,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- monetdb.mx 16 Oct 2008 06:15:10 -0000 1.29
+++ monetdb.mx 26 Oct 2008 07:43:23 -0000 1.30
@@ -1078,11 +1078,12 @@
printf("you are about to remove database
'%s'\n", dbname);
printf("ALL data in this database will get
lost, "
"are you sure? [y/N] ");
- answ = getchar();
- while (answ!= '\n' && getchar()!= '\n')
- ;
- if (answ != 'y' && answ != 'Y') {
- printf("battle control terminated\n");
+ if (scanf("%c", &answ) >= 1 &&
+ (answ == 'y' || answ == 'Y'))
+ {
+ /* do it! */
+ } else {
+ printf("aborted\n");
exit(0);
}
}
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins