Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion blobmsg.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ static inline int blobmsg_type(const struct blob_attr *attr)
return blob_id(attr);
}

static uint16_t blobmsg_namelen(const struct blobmsg_hdr *hdr)
static inline uint16_t blobmsg_namelen(const struct blobmsg_hdr *hdr)
{
return be16_to_cpu(hdr->namelen);
}
Expand Down
2 changes: 1 addition & 1 deletion uloop.c
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ int uloop_timeout_set(struct uloop_timeout *timeout, int msecs)
time->tv_sec += msecs / 1000;
time->tv_usec += (msecs % 1000) * 1000;

if (time->tv_usec > 1000000) {
if (time->tv_usec >= 1000000) {
time->tv_sec++;
time->tv_usec -= 1000000;
}
Expand Down
Loading