summaryrefslogtreecommitdiff
path: root/legacy/ethumb
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@profusion.mobi>2010-08-21 13:52:25 +0000
committerLucas De Marchi <lucas.demarchi@profusion.mobi>2010-08-21 13:52:25 +0000
commit5a8a8c90140aa18bde2c1696eb7d2da1c978e15e (patch)
treeb9d11055f743cd53a3895501ed9a6203062bbe60 /legacy/ethumb
parent8b3511109441c22a2664665efe00892dc44fcf6c (diff)
Convert (hopefully) all comparisons to NULL
Apply badzero.cocci, badnull.coci and badnull2.cocci This should convert all cases where there's a comparison to NULL to simpler forms. This patch applies the following transformations: code before patch ||code after patch =============================================================== return a == NULL; return !a; return a != NULL; return !!a; func(a == NULL); func(!a); func(a != NULL); func(!!a); b = a == NULL; b = !a; b = a != NULL; b = !!a; b = a == NULL ? c : d; b = !a ? c : d; b = a != NULL ? c : d; b = a ? c : d; other cases: a == NULL !a a != NULL a SVN revision: 51487
Diffstat (limited to 'legacy/ethumb')
-rw-r--r--legacy/ethumb/src/bin/ethumbd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/legacy/ethumb/src/bin/ethumbd.c b/legacy/ethumb/src/bin/ethumbd.c
index 333040c51b..0de7ed5731 100644
--- a/legacy/ethumb/src/bin/ethumbd.c
+++ b/legacy/ethumb/src/bin/ethumbd.c
@@ -1659,7 +1659,7 @@ static int
1659_ethumb_dbus_interface_elements_add(E_DBus_Interface *iface, struct _Ethumb_DBus_Method_Table *mtable, struct _Ethumb_DBus_Signal_Table *stable) 1659_ethumb_dbus_interface_elements_add(E_DBus_Interface *iface, struct _Ethumb_DBus_Method_Table *mtable, struct _Ethumb_DBus_Signal_Table *stable)
1660{ 1660{
1661 int i = -1; 1661 int i = -1;
1662 while (mtable && mtable[++i].name != NULL) 1662 while (mtable && mtable[++i].name)
1663 if (!e_dbus_interface_method_add(iface, 1663 if (!e_dbus_interface_method_add(iface,
1664 mtable[i].name, 1664 mtable[i].name,
1665 mtable[i].signature, 1665 mtable[i].signature,
@@ -1668,7 +1668,7 @@ _ethumb_dbus_interface_elements_add(E_DBus_Interface *iface, struct _Ethumb_DBus
1668 return 0; 1668 return 0;
1669 1669
1670 i = -1; 1670 i = -1;
1671 while (stable && stable[++i].name != NULL) 1671 while (stable && stable[++i].name)
1672 if (!e_dbus_interface_signal_add(iface, 1672 if (!e_dbus_interface_signal_add(iface,
1673 stable[i].name, 1673 stable[i].name,
1674 stable[i].signature)) 1674 stable[i].signature))