aboutsummaryrefslogtreecommitdiff
path: root/minilogd.c
AgeCommit message (Collapse)AuthorFiles
2009-08-22Splint recommended cleanups to minilogdDan McGee1
Signed-off-by: Dan McGee <dan@archlinux.org>
2009-06-12Fix warning when compiling without -ansi flagGerardo Exequiel Pozzi1
Add a #define without checking if already defined (introduced in a2db62cbc2f326c30bfd39be31fe71472b8e47e1 ) Signed-off-by: Gerardo Exequiel Pozzi <djgera@exequiel.ban2.ar> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-06-12Fix minilogd.c eat memory on buflines>=MAX_BUF_LINESGerardo Exequiel Pozzi1
Do not allocate more memory and leak when buflines>=MAX_BUF_LINES Signed-off-by: Gerardo Exequiel Pozzi <djgera@exequiel.ban2.ar> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-03-09minilogd: ensure we free() the bufferGerardo Exequiel Pozzi1
This isn't strictly needed, as memory is cleaned up on exit anyway, but let's shoot for good form :) Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-03-09minilogd: Initialize values for accept()Gerardo Exequiel Pozzi1
From the accept(2) manpage: The addrlen argument is a value-result argument: the caller must initialize it to contain the size (in bytes) of the structure pointed to by addr; on return it will contain the actual size of the peer address. Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-03-09Fix minilogd headersGerardo Exequiel Pozzi1
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-12-23Adjust minilogd's maximumsAaron Griffin1
A max of 200000 lines stored, at 8K per line, was a little ridiculous and soaked up way to much memory if a syslogger was not started. Drop the max to 10000 so that we don't kill the user's system. Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-01-08minilogd cleanup and warning fixesJonathan Frazier1
gcc gives a warning about signed/unsigned ints, and it tries to write to syslog's /dev/log with a dgram socket which gives an EPROTOCOL error. Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2005-06-30added new netcfg stuff for roaming network profilesJudd Vinet1
2003-12-21upgpkg: initscripts 0.6Judd Vinet1