summaryrefslogtreecommitdiff
path: root/src/gib_style.c
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2014-05-06 19:10:22 +0200
committerDaniel Friesel <derf@finalrewind.org>2014-05-06 19:10:22 +0200
commit03b4faf6d71f52568a0e5b61552b6c0d44b71b62 (patch)
tree6477350a4cb9627658a2cde9511004c830f9c60e /src/gib_style.c
parentf0fd0413e2904e0824707d866a044341184bbe13 (diff)
remove gib_utils, the same functionality is provided by utils already
Diffstat (limited to 'src/gib_style.c')
-rw-r--r--src/gib_style.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gib_style.c b/src/gib_style.c
index 6671e6e..9280217 100644
--- a/src/gib_style.c
+++ b/src/gib_style.c
@@ -24,14 +24,15 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include "gib_style.h"
-#include "gib_utils.h"
+#include "utils.h"
+#include "debug.h"
gib_style *
gib_style_new(char *name)
{
gib_style *s = NULL;
- s = malloc(sizeof(gib_style));
+ s = emalloc(sizeof(gib_style));
memset(s, 0, sizeof(gib_style));
if (name)
@@ -69,7 +70,7 @@ gib_style_bit_new(int x_offset, int y_offset, int r, int g, int b, int a)
{
gib_style_bit *sb;
- sb = malloc(sizeof(gib_style_bit));
+ sb = emalloc(sizeof(gib_style_bit));
memset(sb, 0, sizeof(gib_style_bit));
sb->x_offset = x_offset;