Skip to content

Commit

Permalink
unsigned constant
Browse files Browse the repository at this point in the history
  • Loading branch information
ka9q committed May 10, 2022
1 parent 8a2f2a5 commit cb0d35d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions avahi.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $Id: avahi.c,v 1.14 2022/04/18 02:08:02 karn Exp $
// $Id: avahi.c,v 1.15 2022/05/10 05:08:59 karn Exp $
// Adapted from avahi's example file client-publish-service.c
#ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
Expand Down Expand Up @@ -286,7 +286,7 @@ static int create_services(AvahiClient *c,struct userdata *userdata) {
if(iter == 100)
return -1;

address.data.ipv4.address = htonl(((unsigned int)0xef << 24) + (userdata->base_address & 0xffffff));
address.data.ipv4.address = htonl((0xefU << 24) + (userdata->base_address & 0xffffff));
userdata->base_address++;
char temp[1024];
int ret = avahi_entry_group_add_address(userdata->group, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, 0, userdata->dns_name,&address);
Expand Down

0 comments on commit cb0d35d

Please sign in to comment.