On Sun, 2006-05-07 at 09:07 +0000, Stefan Huelswitt wrote:
On 06 May 2006 Udo Richter udo_richter@gmx.de wrote:
Based on that, correct would be: execle("/bin/sh","sh","-c",cmd,(char*)NULL,environ);
Well, normaly NULL is defined as (void *)0, which is a pointer...
As I don't have gcc 4.x running I need a confirmation from someone with gcc 4.x that this is still ok.
With the cast added, it still compiles without warnings here using g++ 4.1.0.