[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: The patch of boot to open a virtual network interface
From: |
olafBuddenhagen |
Subject: |
Re: The patch of boot to open a virtual network interface |
Date: |
Fri, 22 Aug 2008 01:56:19 +0200 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
Hi,
On Thu, Aug 21, 2008 at 10:43:03AM +0200, zhengda wrote:
> Ben Asselstine wrote:
>> On Tue, Aug 19, 2008 at 4:02 PM, zhengda <zhengda1936@gmail.com> wrote:
>>> + case 'f':
>>> + dev_file = strstr (arg, "=");
>>> + if (dev_file == NULL)
>>> + return ARGP_ERR_UNKNOWN;
>>> + *dev_file = 0;
>>> + add_dev_map (arg, dev_file+1);
>>> + break;
>> Also, the use of strstr is pernicious.
>>
> why? Is there any other function to do it?
Use strchr() to search for a single character.
-antrik-
- Re: The patch of boot to open a virtual network interface, (continued)
- Re: The patch of boot to open a virtual network interface, zhengda, 2008/08/19
- Re: The patch of boot to open a virtual network interface, Neal H. Walfield, 2008/08/19
- Re: The patch of boot to open a virtual network interface, zhengda, 2008/08/19
- Re: The patch of boot to open a virtual network interface, zhengda, 2008/08/19
- Re: The patch of boot to open a virtual network interface, Ben Asselstine, 2008/08/20
- Re: The patch of boot to open a virtual network interface, zhengda, 2008/08/21
- Re: The patch of boot to open a virtual network interface,
olafBuddenhagen <=
- Re: The patch of boot to open a virtual network interface, Da Zheng, 2008/08/22
- Re: The patch of boot to open a virtual network interface, Samuel Thibault, 2008/08/22
- Re: The patch of boot to open a virtual network interface, Ben Asselstine, 2008/08/22
- Re: The patch of boot to open a virtual network interface, Samuel Thibault, 2008/08/22
- Re: The patch of boot to open a virtual network interface, olafBuddenhagen, 2008/08/25
- Re: The patch of boot to open a virtual network interface, Da Zheng, 2008/08/26
The patch of boot to open a virtual network interface, zhengda, 2008/08/08