Re: make test fails (Kernel 2.6.12.3)

"Peter T. Breuer" <[email protected]>
Newsgroups gmane.linux.enbd.general
Message-ID <[email protected]>
"Also sprach Robert Scussel:"
> /var/tmp/nbd-2.4.32/nbd/enbd-server.c: In function `newproto':
> /var/tmp/nbd-2.4.32/nbd/enbd-server.c:1996: warning: int format, 
> different type arg (arg 6)

That line is:

  PERR("net errored (header %d got %d) on req. Breaking off.\n",
                       sizeof(request), err);

and so the complaint is for err or sizeof(request) not being an int.
err is  declared as

     int err = 0;

so you have a compiler that thinks that sizeof does not return an int.

Sigh. That's OK, but you will have to fix such things! Anyway, I can
work through your compiler complaints and fix them. I'd cast to int!
I'm not prepared to use the %z format, or whatever it is.



> /var/tmp/nbd-2.4.32/nbd/enbd-server.c:1996: warning: int format, 
> different type arg (arg 6)
> /var/tmp/nbd-2.4.32/nbd/enbd-server.c: In function `masterpropagate':
> /var/tmp/nbd-2.4.32/nbd/enbd-server.c:3406: warning: cast from pointer 
> to integer of different size

Really?


       pid = (typeof(pid)) keydata;

different size?!!!

       int pid;
       void *keydata;

Uhhhhhh. Your addresses are not 32 bit or your integers aren't. 
ou MUST be on an ia64 architecture. I refuse to believe you have a
16bit arch.

Is that the case?

Peter
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.