diff options
author | LRN <lrn1986@gmail.com> | 2013-12-19 06:00:23 +0000 |
---|---|---|
committer | LRN <lrn1986@gmail.com> | 2013-12-19 06:00:23 +0000 |
commit | e0ca7357cd0bfedc5c29cb731b56279fef8da059 (patch) | |
tree | ecfd47cf59bc00e656b53fd59c58f5038e342d65 /src/peerinfo/gnunet-service-peerinfo.c | |
parent | 92fd84dc7ef98452f848a62677c61a2b80b5835e (diff) | |
download | gnunet-e0ca7357cd0bfedc5c29cb731b56279fef8da059.tar.gz gnunet-e0ca7357cd0bfedc5c29cb731b56279fef8da059.zip |
malloc -> new
Diffstat (limited to 'src/peerinfo/gnunet-service-peerinfo.c')
-rw-r--r-- | src/peerinfo/gnunet-service-peerinfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/peerinfo/gnunet-service-peerinfo.c b/src/peerinfo/gnunet-service-peerinfo.c index a78855101..60ecaeb41 100644 --- a/src/peerinfo/gnunet-service-peerinfo.c +++ b/src/peerinfo/gnunet-service-peerinfo.c | |||
@@ -1138,7 +1138,7 @@ handle_notify (void *cls, struct GNUNET_SERVER_Client *client, | |||
1138 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 1138 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
1139 | "`%s' message received\n", | 1139 | "`%s' message received\n", |
1140 | "NOTIFY"); | 1140 | "NOTIFY"); |
1141 | nc = GNUNET_malloc (sizeof (struct NotificationContext)); | 1141 | nc = GNUNET_new (struct NotificationContext); |
1142 | nc->client = client; | 1142 | nc->client = client; |
1143 | nc->include_friend_only = ntohl (nm->include_friend_only); | 1143 | nc->include_friend_only = ntohl (nm->include_friend_only); |
1144 | 1144 | ||