mirror of
https://repo.or.cz/socat.git
synced 2025-07-09 13:46:33 +00:00
corrected a few mistakes that caused compiler warnings on 64bit hosts
This commit is contained in:
parent
d086001911
commit
c4751d50ec
5 changed files with 10 additions and 8 deletions
4
error.c
4
error.c
|
@ -1,5 +1,5 @@
|
|||
/* source: error.c */
|
||||
/* Copyright Gerhard Rieger 2001-2007 */
|
||||
/* Copyright Gerhard Rieger 2001-2008 */
|
||||
/* Published under the GNU General Public License V.2, see file COPYING */
|
||||
|
||||
/* the logging subsystem */
|
||||
|
@ -100,7 +100,7 @@ void diag_set(char what, const char *arg) {
|
|||
sizeof(facilitynames)/sizeof(struct wordent))) == NULL) {
|
||||
Error1("unknown syslog facility \"%s\"", arg);
|
||||
} else {
|
||||
diagopts.logfacility = (int)keywd->desc;
|
||||
diagopts.logfacility = (int)(size_t)keywd->desc;
|
||||
}
|
||||
}
|
||||
openlog(diagopts.progname, LOG_PID, diagopts.logfacility);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue