* [devel] missing sentinel in function call
@ 2006-05-15 15:59 Alexey Tourbin
2006-05-15 16:02 ` Alexey Tourbin
2006-05-15 16:05 ` Dmitry V. Levin
0 siblings, 2 replies; 5+ messages in thread
From: Alexey Tourbin @ 2006-05-15 15:59 UTC (permalink / raw)
To: devel
[-- Attachment #1: Type: text/plain, Size: 224 bytes --]
execl("/bin/sh", "sh", "-c", cmd, 0);
Panic(errno, "/bin/sh");
cc1: warnings being treated as errors
fileio.c: In function 'printpipe':
fileio.c:782: warning: missing sentinel in function call
Как исправить?
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [devel] missing sentinel in function call
2006-05-15 15:59 [devel] missing sentinel in function call Alexey Tourbin
@ 2006-05-15 16:02 ` Alexey Tourbin
2006-05-15 16:04 ` Andrey Rahmatullin
2006-05-15 16:05 ` Dmitry V. Levin
1 sibling, 1 reply; 5+ messages in thread
From: Alexey Tourbin @ 2006-05-15 16:02 UTC (permalink / raw)
To: devel
[-- Attachment #1: Type: text/plain, Size: 297 bytes --]
On Mon, May 15, 2006 at 07:59:14PM +0400, Alexey Tourbin wrote:
> execl("/bin/sh", "sh", "-c", cmd, 0);
> Panic(errno, "/bin/sh");
Дошло
- execl("/bin/sh", "sh", "-c", cmd, 0);
+ execl("/bin/sh", "sh", "-c", cmd, (void*) 0);
Указатель и целый могут отличаться по размеру.
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [devel] missing sentinel in function call
2006-05-15 16:02 ` Alexey Tourbin
@ 2006-05-15 16:04 ` Andrey Rahmatullin
0 siblings, 0 replies; 5+ messages in thread
From: Andrey Rahmatullin @ 2006-05-15 16:04 UTC (permalink / raw)
To: devel, devel
[-- Attachment #1: Type: text/plain, Size: 447 bytes --]
On Mon, May 15, 2006 at 08:02:24PM +0400, Alexey Tourbin wrote:
> - execl("/bin/sh", "sh", "-c", cmd, 0);
> + execl("/bin/sh", "sh", "-c", cmd, (void*) 0);
NULL?
--
WBR, wRAR (ALT Linux Team)
Powered by the ALT Linux fortune(8):
Единственный helper, которому я доверяю, это /usr/lib/utempter/utempter из
пакета libutempter, ибо я написал его с нуля, пользуясь лишь идеей
Eric Troan'овского utempter'а.
-- ldv in devel@
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 191 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [devel] missing sentinel in function call
2006-05-15 15:59 [devel] missing sentinel in function call Alexey Tourbin
2006-05-15 16:02 ` Alexey Tourbin
@ 2006-05-15 16:05 ` Dmitry V. Levin
2006-05-15 17:53 ` [devel] [wiki] " Michael Shigorin
1 sibling, 1 reply; 5+ messages in thread
From: Dmitry V. Levin @ 2006-05-15 16:05 UTC (permalink / raw)
To: ALT Devel discussion list
[-- Attachment #1: Type: text/plain, Size: 554 bytes --]
On Mon, May 15, 2006 at 07:59:14PM +0400, Alexey Tourbin wrote:
>
> execl("/bin/sh", "sh", "-c", cmd, 0);
> Panic(errno, "/bin/sh");
>
>
> cc1: warnings being treated as errors
> fileio.c: In function 'printpipe':
> fileio.c:782: warning: missing sentinel in function call
>
> Как исправить?
Читать документацию. Если лень искать, то вторая ссылка в G ведёт на
http://www.linuxonly.nl/docs/sentinel/
Так ругается:
execl("/bin/sh", "sh", "-c", cmd, 0);
Так не ругается:
execl("/bin/sh", "sh", "-c", cmd, NULL);
--
ldv
[-- Attachment #2: Type: application/pgp-signature, Size: 191 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* [devel] [wiki] Re: missing sentinel in function call
2006-05-15 16:05 ` Dmitry V. Levin
@ 2006-05-15 17:53 ` Michael Shigorin
0 siblings, 0 replies; 5+ messages in thread
From: Michael Shigorin @ 2006-05-15 17:53 UTC (permalink / raw)
To: ALT Devel discussion list
On Mon, May 15, 2006 at 08:05:29PM +0400, Dmitry V. Levin wrote:
> > fileio.c:782: warning: missing sentinel in function call
> Читать документацию. Если лень искать, то вторая ссылка в G ведёт на
> http://www.linuxonly.nl/docs/sentinel/
Давайте собирать здесь: http://wiki.sisyphus.ru/devel/gcc4
--
---- WBR, Michael Shigorin <mike@altlinux.ru>
------ Linux.Kiev http://www.linux.kiev.ua/
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-05-15 17:53 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-15 15:59 [devel] missing sentinel in function call Alexey Tourbin
2006-05-15 16:02 ` Alexey Tourbin
2006-05-15 16:04 ` Andrey Rahmatullin
2006-05-15 16:05 ` Dmitry V. Levin
2006-05-15 17:53 ` [devel] [wiki] " Michael Shigorin
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