Commit Graph

646 Commits

Author SHA1 Message Date
Kim Woelders 919dc4c069 Warning cleanups - api. 2016-08-19 09:31:09 +02:00
Kim Woelders bb351a0665 Autofoo update (warnings). 2016-08-19 09:31:09 +02:00
Kim Woelders 8fa9a94c57 Autofoo update (unused, func).
Add __UNUSED__ and __func__ stuff from e16.
2016-08-19 09:31:09 +02:00
Kim Woelders ee82f13d2f Don't remove m4 when cleaning. 2016-08-19 09:31:09 +02:00
Kim Woelders 4329400927 Autofoo update (AC_PROG_LIBTOOL -> LT_INIT).
Also tidy up a bit in Makefile.am.
2014-02-16 10:44:03 +01:00
Kim Woelders 3ae4a353ae E-Power: Fix showing image when battery is > 100% full(?). 2013-07-25 20:19:36 +02:00
Kim Woelders 0c472462c8 E-Power: Mode tweaks.
- Try newest (most likely?) method first.
- Enable selecting specific mode (for debug).
2013-07-25 20:19:36 +02:00
Kim Woelders ed72a3550d E-Power: Simplifications. 2013-07-25 20:19:35 +02:00
Kim Woelders f126801893 E-Power: Some refactoring. 2013-07-14 20:18:01 +02:00
Kim Woelders be52365c1c E-Power: Timer tweaks.
Change all timeouts to 10 s.
2013-07-14 20:10:16 +02:00
Kim Woelders 2a2b07b2df E-Power: Cosmetics. 2013-07-14 16:40:16 +02:00
Kim Woelders f1c8766cca Use "wop" in stead of ancient "remember" IPC command.
Already done in remember case, seems appropriate for unremembering too.
2013-07-14 16:39:59 +02:00
Kim Woelders 695a39808a Change MAX to MAXVAL to avoid name clashes. 2013-07-12 23:02:00 +02:00
Kim Woelders e00a53d390 Fix optional libgtop usage. 2013-07-12 23:00:17 +02:00
Kim Woelders 0b15bff14f Change package name to e16-epplets for package naming consistency. 2013-07-12 22:23:19 +02:00
Kim Woelders 631daee134 Remove obsolete USE_OLD_REMEMBER/NO_AUTO_RESPAWN stuff. 2013-07-12 22:23:18 +02:00
Kim Woelders 30baa4ff7c Autofoo cleanups.
- Remove obsolete AC_TYPE_SIGNAL.
- Remove unnecessary AC_GCC_TRADITIONAL.
- Remove unrecommended AM_SANITY_CHECK.
2013-07-12 22:13:16 +02:00
Kim Woelders 9800689a7c Eliminate use of malloc.h. 2013-03-24 23:27:28 +01:00
Kim Woelders 26f04329f9 Fix autogen.sh after m4 directory change. 2013-03-16 13:26:41 +01:00
Kim Woelders a87fc81f0a Add AC_CONFIG_MACRO_DIR and ACLOCAL_AMFLAGS.
SVN revision: 82725
2013-01-13 13:09:58 +00:00
Kim Woelders 83c964a105 Change obsolete INCLUDES to AM_CPPFLAGS.
Also fix incorrect api include path (for epplet.h).

SVN revision: 82724
2013-01-13 13:09:56 +00:00
Kim Woelders 777db67d85 0.14.000.
SVN revision: 82723
2013-01-13 13:09:52 +00:00
Kim Woelders 24c96a6ec3 Version 0.14.
SVN revision: 77331
2012-10-02 18:43:30 +00:00
Kim Woelders 4dfe5f175e Fix linking on debian.
Patch by The Wanderer.

SVN revision: 77228
2012-09-30 09:41:40 +00:00
Kim Woelders 7e8e4fbc92 Fix linking on Fedora with ld.gold.
SVN revision: 77227
2012-09-30 09:41:38 +00:00
Kim Woelders f642c0da22 Minor cleanups in the comms department.
SVN revision: 77226
2012-09-30 09:41:36 +00:00
Kim Woelders 22e7b1bbae Use XkbKeycodeToKeysym() in stead of XKeycodeToKeysym().
Avoids deprecation warning.

SVN revision: 77225
2012-09-30 09:41:34 +00:00
Kim Woelders ee7cfd147d Indent.
SVN revision: 77224
2012-09-30 09:41:07 +00:00
Kim Woelders a03689744e Add support for reading battery status from /sys/class/power_supply.
Patch by Melvin Meadlin.

SVN revision: 65612
2011-11-26 10:37:48 +00:00
Kim Woelders 5052a0dceb Cleanups.
SVN revision: 65611
2011-11-26 10:37:46 +00:00
Kim Woelders 29b192c412 Using -rpath should not be necessary.
..._DEPENDENCIES shouldn't be either.

SVN revision: 65610
2011-11-26 10:37:44 +00:00
Kim Woelders 6888019ca6 0.13.000
SVN revision: 65609
2011-11-26 10:37:41 +00:00
Lucas De Marchi 205582b59e Revert and re-apply badnull patch
Revert previous patch generated by badnull.cocci script, and apply the new one.
The main difference is that assert and assert-like functions are not touched
anymore.




SVN revision: 51650
2010-08-26 01:34:13 +00:00
Lucas De Marchi fd4740a25d 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
2010-08-21 13:52:25 +00:00
Lucas De Marchi 9c2a943418 Apply badzero.cocci, badnull.cocci and badnull2.cocci
Since badzero.cocci depends on coccinelle knowledge about a variable being a pointer
and about a function returning a pointer, maybe there are false negatives.



SVN revision: 51092
2010-08-13 17:04:13 +00:00
Lucas De Marchi 6d588aa309 Apply memset-calloc.cocci
Change calls to malloc + memset to calloc whenever an automatic conversion can
be done.

Possible candidates are not treated here, only the ones we can be sure the
conversion is safe.



SVN revision: 51078
2010-08-13 12:53:08 +00:00
Lucas De Marchi 1ed7653a27 Do not compare pointers to 0
SVN revision: 50973
2010-08-10 19:24:38 +00:00
Lucas De Marchi 2d992bb760 Spell: rememebr => remember
SVN revision: 50686
2010-07-30 11:34:08 +00:00
Lucas De Marchi deadbb382c Fix wrong type in malloc
Bugs found by bad-malloc.cocci



SVN revision: 50194
2010-07-12 03:35:43 +00:00
Kim Woelders ac5648a12c Version 0.13.
SVN revision: 48476
2010-04-30 14:04:54 +00:00
Kim Woelders b907c9f828 Fix some warnings.
SVN revision: 48475
2010-04-30 14:04:50 +00:00
Kim Woelders 4b65b51a5c Bump revision, autofoo cleanups.
SVN revision: 47765
2010-04-05 17:47:11 +00:00
Kim Woelders ddaa1d19ac Indent
SVN revision: 46481
2010-02-25 20:09:39 +00:00
Kim Woelders f57262369d Add option to ignore error for missing device (patch by Melvin Meadlin II).
Useful for when devices are external and removed, or when the module
has to be reloaded.

SVN revision: 46480
2010-02-25 20:09:37 +00:00
Kim Woelders 123d3649c2 Fix some warnings on 64 bit platforms.
SVN revision: 46479
2010-02-25 20:09:34 +00:00
Kim Woelders 0812b7d329 Fix linking with --no-add-needed.
SVN revision: 46160
2010-02-14 08:08:54 +00:00
Kim Woelders 8b754c1f3f Remove AM_MAINTAINER_MODE.
SVN revision: 46159
2010-02-14 08:08:29 +00:00
Kim Woelders 5fe260debb Version 0.12.
SVN revision: 38437
2009-01-03 09:09:28 +00:00
Kim Woelders 3942c19a02 Autofoo tweaks.
SVN revision: 38436
2009-01-03 09:01:16 +00:00
Kim Woelders 54c47230bf Avoid some crashes on early exit. Cleanups.
SVN revision: 38413
2009-01-01 20:42:28 +00:00