bug-hurd
[Top][All Lists]
Advanced

[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-




reply via email to

[Prev in Thread] Current Thread [Next in Thread]