Client: rename the struct client to class Client
This commit is contained in:
@@ -27,13 +27,13 @@ const char *current_command;
|
||||
int command_list_num;
|
||||
|
||||
void
|
||||
command_success(struct client *client)
|
||||
command_success(Client *client)
|
||||
{
|
||||
client_puts(client, "OK\n");
|
||||
}
|
||||
|
||||
void
|
||||
command_error_v(struct client *client, enum ack error,
|
||||
command_error_v(Client *client, enum ack error,
|
||||
const char *fmt, va_list args)
|
||||
{
|
||||
assert(client != NULL);
|
||||
@@ -48,7 +48,7 @@ command_error_v(struct client *client, enum ack error,
|
||||
}
|
||||
|
||||
void
|
||||
command_error(struct client *client, enum ack error, const char *fmt, ...)
|
||||
command_error(Client *client, enum ack error, const char *fmt, ...)
|
||||
{
|
||||
va_list args;
|
||||
va_start(args, fmt);
|
||||
|
Reference in New Issue
Block a user