Skip to content

Commit

Permalink
more code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
KlausT committed Aug 23, 2018
1 parent 304366e commit 937ab9c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ccminer.cpp
Expand Up @@ -1180,7 +1180,7 @@ static bool get_work(struct thr_info *thr, struct work *work)
}

/* fill out work request message */
wc = (struct workio_cmd *)calloc(1, sizeof(*wc));
wc = (struct workio_cmd *)calloc(1, sizeof(struct workio_cmd));
if(wc == NULL)
{
applog(LOG_ERR, "Out of memory!");
Expand Down Expand Up @@ -1213,7 +1213,7 @@ static bool submit_work(struct thr_info *thr, const struct work *work_in)
{
struct workio_cmd *wc;
/* fill out work request message */
wc = (struct workio_cmd *)calloc(1, sizeof(*wc));
wc = (struct workio_cmd *)calloc(1, sizeof(struct workio_cmd));
if(wc == NULL)
{
applog(LOG_ERR, "Out of memory!");
Expand Down
2 changes: 1 addition & 1 deletion util.cpp
Expand Up @@ -185,7 +185,7 @@ void applog(int prio, const char *fmt, ...)
free(f);
if (opt_logfile)
{
fl = (char*)alloca(len);
fl = (char*)malloc(len);
sprintf(fl, "[%d-%02d-%02d %02d:%02d:%02d] %s\n",
tm.tm_year + 1900,
tm.tm_mon + 1,
Expand Down

0 comments on commit 937ab9c

Please sign in to comment.