RE: dev.c - protocol selection - why two for's

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Suvidh,

thanks for the explanation (!). i wanted to be sure i am doing my debuging
modifications right.


BTW do you know, why my compiler could complain when i do sth like this in
network device driver - 8159too.c


********************************************
char *moj_bufor; //at the beginning of the file

moj_bufor = vmalloc(4000);

/* somewhere later in the code but inside an existinf fucntion def */

sprintf( &(moj_bufor+offset), "some text");      // offset is taken from
strlen(moj_bufor)

********************************************
^
..it says: " invalid lvalue in unary `&' "

what i did wrong?

thanks in advance.

best regards

adam




-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux