Subject: Re: modstat + gehenna-devsw
To: None <lha@stacken.kth.se>
From: MAEKAWA Masahide <bishop@rr.iij4u.or.jp>
List: current-users
Date: 09/18/2002 08:15:32
Love <lha@stacken.kth.se> wrote:
>> > +		int len = 0;
>> > +		
>> > +		if (block_major(offset) > 0)
>> > +			len = snprintf(offset_string, sizeof(offset_string),
>> > +			    "%3d%s", block_major(offset), 
>> > +			    char_major(offset) > 0 ? "/" : "");
>> > +		if (char_major(offset) > 0 && len < sizeof(offset_string))
>> > +			(void) snprintf(offset_string + len, 
>> > +			    sizeof(offset_string) - len,
>> > +			    "%3d", char_major(offset));

	        (void)snprintf(offset_string, sizeof(offset_string),
			       "%3d/%3d",
			       block_major(offset), char_major(offset));

>> > +
>> > +	} else if (offset < 0)

This is enough.

--- MAEKAWA Masahide
--- Key fingerprint = BC5E D8CB 816C 2CB5 8560  FDE3 6CB8 BF5D 8D50 F2EE