summaryrefslogtreecommitdiff
path: root/gatchat/gsm0710.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-09-08 08:39:51 +0200
committerMarcel Holtmann <marcel@holtmann.org>2009-09-08 08:39:51 +0200
commitabc7a934ee6f04368bb485a93ffb98ca601679f2 (patch)
treef694fb847c5bc933451db92ffed2bf1b15d620ae /gatchat/gsm0710.c
parent3a0518ec2761825d642ef17bb45e2befa84c7d14 (diff)
downloadofono-abc7a934ee6f04368bb485a93ffb98ca601679f2.tar.gz
Use NULL for init of function callbacks
Diffstat (limited to 'gatchat/gsm0710.c')
-rw-r--r--gatchat/gsm0710.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/gatchat/gsm0710.c b/gatchat/gsm0710.c
index 8b05ed28..7f1fffec 100644
--- a/gatchat/gsm0710.c
+++ b/gatchat/gsm0710.c
@@ -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 */