ALT Linux Team development discussions
 help / color / mirror / Atom feed
* Re: [devel] [git update] packages/ssjs: heads/master
  @ 2007-07-05  9:20 ` Slava Semushin
  2007-07-05  9:38   ` Alexey Gladkov
  0 siblings, 1 reply; 2+ messages in thread
From: Slava Semushin @ 2007-07-05  9:20 UTC (permalink / raw)
  To: ALT Devel discussion list

2007/7/5, Stanislav Ievlev <inger / altlinux.org>:
[...]
> diff --git a/ssjs/lib/root.c b/ssjs/lib/root.c
[...]
> +static
> +int
> +check_path(const char *root,const char *path)
> +{
> +    int rlen = strlen(root);
> +    int plen = strlen(path);
[...]

Предлагаю использовать тип size_t вместо int, так как результат,
возвращемый ф-цией strlen() имеет именно такой тип.


-- 
+ Slava Semushin | slava.semushin @ gmail.com
+ ALT Linux Team | php-coder @ altlinux.ru

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [devel] [git update] packages/ssjs: heads/master
  2007-07-05  9:20 ` [devel] [git update] packages/ssjs: heads/master Slava Semushin
@ 2007-07-05  9:38   ` Alexey Gladkov
  0 siblings, 0 replies; 2+ messages in thread
From: Alexey Gladkov @ 2007-07-05  9:38 UTC (permalink / raw)
  To: ALT Devel discussion list

Slava Semushin пишет:
> Предлагаю использовать тип size_t вместо int, так как результат,
> возвращемый ф-цией strlen() имеет именно такой тип.

Это набросок, но всё равно спасибо.

-- 
Rgrds, legion



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-07-05  9:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-05  9:20 ` [devel] [git update] packages/ssjs: heads/master Slava Semushin
2007-07-05  9:38   ` Alexey Gladkov

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git