安裝Adobe Flash到firefox事件小事,不過記一下免得以後還要再找一次,可以省事,
- 到http://labs.adobe.com/downloads/flashplayer10_square.html下載
- 解壓縮到/usr/lib64/mozilla/plugins
現在可以看大盤的技術分析啦。
if_power_of_2(n) (n != 0 && ((n & (n -1)) == 0))
void swap(int *x, int *y) { if (x != y) { *x ^= *y; *y ^= *x; *x ^= *y; } }
#define NLMSG_ALIGNTO 4U // 作4byte alignment #define NLMSG_ALIGN(len) (((len)+NLMSG_ALIGNTO-1) & ~(NLMSG_ALIGNTO-1)) 比如要讓NLMSG_HDRLEN能符合4byte-alignment就是定義如下的macro #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr)))陸續收集中...
The warn_unused_result attribute causes a warning to be emitted if a caller of the function with this attribute does not use its return value. This is useful for functions where not checking the result is either a security problem or always a bug, such as realloc.