[lcd4linux @ 2004-03-03 03:47:04 by reinelt]

big patch from Martin Hejl:
- use qprintf() where appropriate
- save CPU cycles on gettimeofday()
- add quit() functions to free allocated memory
- fixed lots of memory leaks

git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@384 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
This commit is contained in:
reinelt
2004-03-03 03:47:04 +00:00
parent d0b39b590e
commit 9ef4282e9e
46 changed files with 770 additions and 167 deletions

View File

@@ -1,4 +1,4 @@
/* $Id: plugin_cpuinfo.c,v 1.7 2004/01/29 04:40:02 reinelt Exp $
/* $Id: plugin_cpuinfo.c,v 1.8 2004/03/03 03:47:04 reinelt Exp $
*
* plugin for /proc/cpuinfo parsing
*
@@ -23,6 +23,13 @@
*
*
* $Log: plugin_cpuinfo.c,v $
* Revision 1.8 2004/03/03 03:47:04 reinelt
* big patch from Martin Hejl:
* - use qprintf() where appropriate
* - save CPU cycles on gettimeofday()
* - add quit() functions to free allocated memory
* - fixed lots of memory leaks
*
* Revision 1.7 2004/01/29 04:40:02 reinelt
* every .c file includes "config.h" now
*
@@ -143,3 +150,8 @@ int plugin_init_cpuinfo (void)
AddFunction ("cpuinfo", 1, my_cpuinfo);
return 0;
}
void plugin_exit_cpuinfo(void)
{
hash_destroy(&CPUinfo);
}