-/* $OpenBSD: scanopt.c,v 1.5 2015/12/11 00:08:43 mmcc Exp $ */
+/* $OpenBSD: scanopt.c,v 1.6 2017/05/31 07:20:26 tedu Exp $ */
/* flex - tool to generate fast lexical analyzers */
}
-int scanopt_destroy (svoid)
+void scanopt_destroy (svoid)
scanopt_t *svoid;
{
struct _scanopt_t *s;
free(s->aux);
free (s);
}
- return 0;
}
-/* $OpenBSD: scanopt.h,v 1.2 2015/11/19 22:16:43 tedu Exp $ */
+/* $OpenBSD: scanopt.h,v 1.3 2017/05/31 07:20:26 tedu Exp $ */
/* flex - tool to generate fast lexical analyzers */
scanopt_t *scanopt_init PROTO ((const optspec_t * options,
int argc, char **argv, int flags));
-/* Frees memory used by scanner.
- * Always returns 0. */
- int scanopt_destroy PROTO ((scanopt_t * scanner));
+/* Frees memory used by scanner. */
+ void scanopt_destroy PROTO ((scanopt_t * scanner));
#ifndef NO_SCANOPT_USAGE
/* Prints a usage message based on contents of optlist.