~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/get_password.h

  • Committer: Toru Maesaka
  • Date: 2009-05-18 06:07:03 UTC
  • mto: (1054.2.5 mordred)
  • mto: This revision was merged to the branch mainline in revision 1056.
  • Revision ID: dev@torum.net-20090518060703-5d2f2luyqaho10yq
Add memory allocation check and fix SEGV problem caused in statement_cleanup() by using calloc. This is temporary, the query statement list should be migrated to a proper container like std::vector

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#ifndef CLIENT_GET_PASSWORD_H
21
21
#define CLIENT_GET_PASSWORD_H
22
22
 
23
 
#include <string>
24
 
 
25
 
char *client_get_tty_password(const char *opt_message);
26
 
 
27
 
std::pair<std::string, std::string> parse_password_arg(std::string s);
28
 
 
29
 
extern bool tty_password;
30
 
extern const std::string PASSWORD_SENTINEL;
 
23
#ifdef __cplusplus
 
24
extern "C" {
 
25
#endif
 
26
 
 
27
  char *client_get_tty_password(const char *opt_message);
 
28
 
 
29
#ifdef __cplusplus
 
30
}
 
31
#endif
31
32
 
32
33
#endif /* CLIENT_GET_PASSWORD_H */