Samba4: build error: /source3/utils/cclean.c latest git

steve steve at
Mon Jul 30 04:14:38 MDT 2012

On 30/07/12 10:35, steve wrote:

> [3077/4253] Compiling source3/utils/cclean.c
> ../source3/utils/cclean.c: In function ‘serverid_str’:
> ../source3/utils/cclean.c:48:11: error: format ‘%lu’ expects argument of
> type ‘long unsigned int’, but argument 5 has type ‘uint64_t’
> [-Werror=format]
> cc1: some warnings being treated as errors

Here is the code:
45static char *serverid_str(const struct server_id id)
47	return talloc_asprintf(talloc_tos(), "pid %u, vnn %u, uid %lu",
48			       (unsigned), (unsigned)id.vnn, id.unique_id);

Is it they are complaining about?

Anyway will try to cast (unsigned long) and hope. . .

More information about the samba-technical mailing list