output_gnuplot: Simplify event().

This commit is contained in:
Uwe Hermann 2010-05-09 15:12:10 +02:00
parent d20ba6490a
commit caf62e22c4
1 changed files with 2 additions and 7 deletions

View File

@ -117,8 +117,6 @@ static int event(struct output *o, int event_type, char **data_out,
uint64_t *length_out)
{
struct context *ctx;
char *outbuf;
int outlen = 1; /* FIXME */
ctx = o->internal;
switch (event_type) {
@ -126,11 +124,8 @@ static int event(struct output *o, int event_type, char **data_out,
/* TODO */
break;
case DF_END:
outbuf = calloc(1, 1); /* FIXME */
if (outbuf == NULL)
return SIGROK_ERR_MALLOC;
*data_out = outbuf;
*length_out = outlen;
*data_out = NULL;
*length_out = 0;
free(o->internal);
o->internal = NULL;
break;