added new multi log system
[NeonServV5.git] / src / modules / global.mod / cmd_global_setaccess.c
index c931640391b38d56afb7f7d9e5188fc7c17bc0c0..8753cc30ac74442275e9b83c7a6daa4dfc057de0 100644 (file)
@@ -1,4 +1,4 @@
-/* cmd_global_setaccess.c - NeonServ v5.4
+/* cmd_global_setaccess.c - NeonServ v5.6
  * Copyright (C) 2011-2012  Philipp Kreil (pk910)
  * 
  * This program is free software: you can redistribute it and/or modify
@@ -60,7 +60,7 @@ CMD_BIND(global_cmd_setaccess) {
             //but first lookup the auth to check if it really exists
             struct global_cmd_setaccess_cache *cache = malloc(sizeof(*cache));
             if (!cache) {
-                perror("malloc() failed");
+                printf_log("global", LOG_ERROR, "%s:%d malloc() failed", __FILE__, __LINE__);
                 return;
             }
             cache->client = client;
@@ -86,7 +86,7 @@ CMD_BIND(global_cmd_setaccess) {
         } else {
             struct global_cmd_setaccess_cache *cache = malloc(sizeof(*cache));
             if (!cache) {
-                perror("malloc() failed");
+                printf_log("global", LOG_ERROR, "%s:%d malloc() failed", __FILE__, __LINE__);
                 return;
             }
             cache->client = client;