refactoring

This commit is contained in:
Devaev Maxim
2018-09-18 22:53:44 +03:00
parent 0d86ae146c
commit eb1b61a144
6 changed files with 52 additions and 54 deletions

View File

@@ -53,12 +53,9 @@ struct device_t *device_init() {
struct device_t *dev;
A_CALLOC(run, 1, sizeof(*run));
MEMSET_ZERO_PTR(run);
run->fd = -1;
A_CALLOC(dev, 1, sizeof(*dev));
MEMSET_ZERO_PTR(dev);
dev->path = (char *)DEFAULT_DEVICE;
dev->width = 640;
dev->height = 480;