[libdvdcss-devel] [PATCH 05/47] Mark strings as const where appropriate.

Diego Elio Pettenò flameeyes at flameeyes.eu
Wed Nov 5 18:22:15 CET 2014


On 29 October 2014 20:33, Diego Biurrun <diego at biurrun.de> wrote:
> -    char *ppsz_devices[] = { "/dev/dvd", "/dev/cdrom", "/dev/hdc", NULL };
> +    const char *ppsz_devices[] = { "/dev/dvd", "/dev/cdrom", "/dev/hdc", NULL };

This should probably be a const char * const.

See https://blog.flameeyes.eu/2007/12/array-of-pointers-and-array-of-arrays

Diego Elio Pettenò — Flameeyes
flameeyes at flameeyes.euhttp://blog.flameeyes.eu/


More information about the libdvdcss-devel mailing list