common/util.h: dodgy non-__GNUC__ p_delete
commitc491cd034c98987eb73f468dc0b5e4a5d58cc922
authorArvydas Sidorenko <asido4@gmail.com>
Mon, 30 Jul 2012 19:06:05 +0000 (30 21:06 +0200)
committerUli Schlachter <psychon@znc.in>
Tue, 31 Jul 2012 14:33:05 +0000 (31 16:33 +0200)
tree146638992854c0ac30fcd4fd68bfad188463cd36
parentd751141e745ea41c52ef7c2450d3729125e592ab
common/util.h: dodgy non-__GNUC__ p_delete

I assume nobody have tried to compile Awesome with GNU uncompatible
compiler for ages and thus non-__GNUC__ p_delete version got
overlooked for quite some time.
First of all, a problem I see is that it assigns void** to a variable
of type void* and then dereferences the same void* variable.
None of the compilers I am aware of will let you go through this
without an error.
And second of all, lets have one portable p_delete.

Signed-off-by: Arvydas Sidorenko <asido4@gmail.com>
Signed-off-by: Uli Schlachter <psychon@znc.in>
common/util.h