~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzle/get_password.c

  • Committer: Jay Pipes
  • Date: 2008-07-17 17:54:00 UTC
  • mto: This revision was merged to the branch mainline in revision 182.
  • Revision ID: jay@mysql.com-20080717175400-xm2aazihjra8mdzq
Removal of DBUG from libdrizzle/ - Round 2

Show diffs side-by-side

added added

removed removed

Lines of Context:
80
80
  char to[80];
81
81
  char *pos=to,*end=to+sizeof(to)-1;
82
82
  int i=0;
83
 
  DBUG_ENTER("get_tty_password");
84
83
  _cputs(opt_message ? opt_message : "Enter password: ");
85
84
  for (;;)
86
85
  {
106
105
    pos--;                                      /* Allow dummy space at end */
107
106
  *pos=0;
108
107
  _cputs("\n");
109
 
  DBUG_RETURN(my_strdup(to,MYF(MY_FAE)));
 
108
  return(my_strdup(to,MYF(MY_FAE)));
110
109
}
111
110
 
112
111
#else
168
167
#endif /* HAVE_GETPASS */
169
168
  char buff[80];
170
169
 
171
 
  DBUG_ENTER("get_tty_password");
172
 
 
173
170
#ifdef HAVE_GETPASS
174
171
  passbuff = getpass(opt_message ? opt_message : "Enter password: ");
175
172
 
215
212
    fputc('\n',stdout);
216
213
#endif /* HAVE_GETPASS */
217
214
 
218
 
  DBUG_RETURN(my_strdup(buff,MYF(MY_FAE)));
 
215
  return(my_strdup(buff,MYF(MY_FAE)));
219
216
}
220
217
#endif /*__WIN__*/