diff options
author | Santiago Carot Nemesio <scarot@libresoft.es> | 2010-04-27 15:37:05 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2010-04-27 17:56:40 +0300 |
commit | f58df2db7a606fcd13a36824bdb4fc3440d9a71e (patch) | |
tree | 8b8769b13dda567ebace66d9a0fb299f1fdf54e0 | |
parent | 400772d67b5861e8dbc8aaeb0aa697e5facb97d7 (diff) | |
download | bluez-f58df2db7a606fcd13a36824bdb4fc3440d9a71e.tar.gz |
Use NULL instead of 0 for functions returning a pointer
-rw-r--r-- | lib/sdp.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1214,7 +1214,7 @@ static sdp_data_t *extract_str(const void *p, int bufsize, int *len) default: SDPERR("Sizeof text string > UINT16_MAX\n"); free(d); - return 0; + return NULL; } if (bufsize < n) { @@ -1771,7 +1771,7 @@ sdp_list_t *sdp_list_append(sdp_list_t *p, void *d) sdp_list_t *q, *n = malloc(sizeof(sdp_list_t)); if (!n) - return 0; + return NULL; n->data = d; n->next = 0; @@ -1809,7 +1809,7 @@ sdp_list_t *sdp_list_insert_sorted(sdp_list_t *list, void *d, n = malloc(sizeof(sdp_list_t)); if (!n) - return 0; + return NULL; n->data = d; for (q = 0, p = list; p; q = p, p = p->next) if (f(p->data, d) >= 0) @@ -3466,7 +3466,7 @@ sdp_record_t *sdp_service_attr_req(sdp_session_t *session, uint32_t handle, if (reqtype != SDP_ATTR_REQ_INDIVIDUAL && reqtype != SDP_ATTR_REQ_RANGE) { errno = EINVAL; - return 0; + return NULL; } memset(&rsp_concat_buf, 0, sizeof(sdp_buf_t)); |