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

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

 



Adam,
I do not think this place is for asking your coding related porblems.


Btw, I'm not sure what you are trying to do in the code snippet, but
the & on the first argument makes it a double pointer. Probably not
what you require.

Suvidh


Friday, 11 July, 2003 7:24 PM
To: "Suvidh Mathur" <Suvidh.Mathur@lntinfotech.com>
cc: <linux-net@vger.kernel.org>
From: "Adam Flizikowski" <adam_fli@poczta.onet.pl>
Subject: RE: dev.c - protocol selection - why two for's



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