[so] [Tema2][Linux] Eroare checker coding styl

Alexandru Fazakas alex.fazakas97 at gmail.com
Wed Apr 3 22:00:42 EEST 2019


In caz ca mai e cineva in aceeasi situatie, un work-around bun ar putea fi
sa aruncati o privire la execl [1]. :)

[1] https://linux.die.net/man/3/execl

Alex

On Wed, Apr 3, 2019 at 9:23 PM Paul Olaru <olarupaulstelian97 at gmail.com>
wrote:

> Există o funcție în familia exec care te scutește de acel array, overall.
>
> Te avertizează generic că ai un vector de pointeri, pointerii în sine sunt
> constanți si chestiile la care indică nu neapărat.
>
> On Wed, Apr 3, 2019, 21:19 Alexandru Fazakas via so <so at cursuri.cs.pub.ro>
> wrote:
>
>> Salut,
>>
>> Stie cineva de ce `static const char *args[] = {"sh", "-c", NULL, NULL};`
>> rezulta
>> pe checkerpatch intr-un warning de tipul `../util/so_stdio.c:267:
>> WARNING:STATIC_CONST_CHAR_ARRAY: static const char * array should probably
>> be static const char * const`?
>>
>> Mersi,
>> Alex
>> _______________________________________________
>> http://ocw.cs.pub.ro/courses/so/info/lista-discutii
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/pipermail/so/attachments/20190403/c19a6390/attachment.html>


More information about the so mailing list