From: thib Date: Mon, 29 Dec 2003 14:11:31 +0000 (+0000) Subject: removed an unneeded cast in a call of memcpy() (produced a warning) X-Git-Tag: ver2_9_4~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6c978149902354601af4444170cfa7fa11aeae6c;p=fcron removed an unneeded cast in a call of memcpy() (produced a warning) --- diff --git a/fcrondyn.c b/fcrondyn.c index 096e4e4..88e2f79 100644 --- a/fcrondyn.c +++ b/fcrondyn.c @@ -22,7 +22,7 @@ * `LICENSE' that comes with the fcron source distribution. */ - /* $Id: fcrondyn.c,v 1.11 2003-12-25 22:41:56 thib Exp $ */ + /* $Id: fcrondyn.c,v 1.12 2003-12-29 14:11:31 thib Exp $ */ /* fcrondyn : interact dynamically with running fcron process : * - list jobs, with their status, next time of execution, etc @@ -35,7 +35,7 @@ #include "allow.h" #include "read_string.h" -char rcs_info[] = "$Id: fcrondyn.c,v 1.11 2003-12-25 22:41:56 thib Exp $"; +char rcs_info[] = "$Id: fcrondyn.c,v 1.12 2003-12-29 14:11:31 thib Exp $"; void info(void); void usage(void); @@ -156,7 +156,7 @@ xexit(int exit_val) /* used in parse_cmd : */ #define Write_cmd(DATA) \ - memcpy(buf + *cmd_len, (long int *) &DATA, sizeof(long int)); \ + memcpy(buf + *cmd_len, &DATA, sizeof(long int)); \ *cmd_len += 1; #define Strncmp(STR1, STR2, STR1_SIZE) \