repo.or.cz
/
wmaker-crm.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
WINGs: Add support for syslog messaging
[wmaker-crm.git]
/
WINGs
/
misc.c
blob
f5a8c91c1aad17c5b31eff5983179aae0a3deba0
1
2
/* Miscelaneous helper functions */
3
4
#include
"WINGsP.h"
5
6
#include
"error.h"
7
8
WMRange
wmkrange
(
int
start
,
int
count
)
9
{
10
WMRange range
;
11
12
range
.
position
=
start
;
13
range
.
count
=
count
;
14
15
return
range
;
16
}
17
18
/*
19
* wutil_shutdown - cleanup in WUtil when user program wants to exit
20
*/
21
void
wutil_shutdown
(
void
)
22
{
23
#ifdef HAVE_SYSLOG
24
w_syslog_close
();
25
#endif
26
}