Use NULL for init of function callbacks

This commit is contained in:
Marcel Holtmann 2009-09-08 08:39:51 +02:00
parent 3a0518ec27
commit abc7a934ee
1 changed files with 10 additions and 10 deletions

View File

@ -53,16 +53,16 @@ void gsm0710_initialize(struct gsm0710_context *ctx)
ctx->reinit_detect_len = 0;
ctx->user_data = 0;
ctx->fd = -1;
ctx->at_command = 0;
ctx->read = 0;
ctx->write = 0;
ctx->deliver_data = 0;
ctx->deliver_status = 0;
ctx->debug_message = 0;
ctx->open_channel = 0;
ctx->close_channel = 0;
ctx->terminate = 0;
ctx->packet_filter = 0;
ctx->at_command = NULL;
ctx->read = NULL;
ctx->write = NULL;
ctx->deliver_data = NULL;
ctx->deliver_status = NULL;
ctx->debug_message = NULL;
ctx->open_channel = NULL;
ctx->close_channel = NULL;
ctx->terminate = NULL;
ctx->packet_filter = NULL;
}
/* Determine if a channel is in use */