/*
* Simple semaphore implementation, P() and V().
*
- * Copyright (C) 2011-2012 Simon Ruderich
+ * Copyright (C) 2011-2013 Simon Ruderich
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
};
SEM *sem_init(int init_value) {
- SEM *sem = (SEM *)malloc(sizeof(SEM));
+ SEM *sem = malloc(sizeof(*sem));
if (NULL == sem) {
return NULL;
}