From 24d4433bd75366774945ed59c0043428dedea4ba Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 21 Jan 2010 12:57:07 +0100 Subject: s3: Move "yesno" to the only place where it is used: client.c --- source3/lib/util.c | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'source3/lib') diff --git a/source3/lib/util.c b/source3/lib/util.c index 8525d9c919..007226b5c9 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -940,24 +940,6 @@ NTSTATUS reinit_after_fork(struct messaging_context *msg_ctx, return status; } -/**************************************************************************** - Put up a yes/no prompt. -****************************************************************************/ - -bool yesno(const char *p) -{ - char ans[20]; - printf("%s",p); - - if (!fgets(ans,sizeof(ans)-1,stdin)) - return(False); - - if (*ans == 'y' || *ans == 'Y') - return(True); - - return(False); -} - #if defined(PARANOID_MALLOC_CHECKER) /**************************************************************************** -- cgit