--------------------------- Pôvodná správa ---------------------------- Predmet: Re: Using linux cryptographic api in busybox Od: [email protected] Dátum: Pon, Máj 9, 2011 11:12 pm Komu: "Rich Felker" <[email protected]> --------------------------------------------------------------------------
> On Mon, May 09, 2011 at 09:58:05PM +0200, [email protected] wrote: >> const char *alg[] = { >> "md5", >> "sha1", >> "sha224", >> "sha256", >> "sha384", >> "sha512" >> }; > > This is a very bloated way of doing strings. Note that the pointer > table is not even const! At least use "const char *const alg[]" but > even better would be "const char alg[][7]" or a one-dimensional array > of chars "md5\0sha1\0sha224\0sha256\0sha384\0sha512". > > Rich Thank you for suggestion, but this is only sample not suited for busybox. First I want to get some criticism if this is good idea before continue porting. _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
