Permalink
Browse files

Use uint32_t instead of int32_t

  • Loading branch information...
hukl committed Dec 12, 2012
1 parent ecba7a7 commit 0352ab89e9888bdda3c197b75fce3f571d8baebb
Showing with 1 addition and 1 deletion.
  1. +1 −1 c_src/syslog_drv.c
View
@@ -89,7 +89,7 @@ static void syslogdrv_output(ErlDrvData handle, char *buf, ErlDrvSizeT len)
as a 4-byte integer in network order, therefore make sure there's at
least 5 bytes in the message. */
if (d->open && len > 4) {
- int priority = ntohl(*(int32_t*)buf);
+ int priority = ntohl(*(uint32_t*)buf);
buf += 4;
/* re-call openlog in case another instance of the port driver
* was called in the mean time */

0 comments on commit 0352ab8

Please sign in to comment.