aboutsummaryrefslogtreecommitdiffstats
path: root/src/cg-limits.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-12-01 03:23:03 +0100
committerMattias Andrée <maandree@kth.se>2016-12-01 03:23:03 +0100
commit9ecf9c624c5272cf8d576ec173283ebfe72fd373 (patch)
tree8e098894b688a45144a6e7de81b97959490f0785 /src/cg-limits.c
parentAdd makefile (diff)
downloadcg-tools-9ecf9c624c5272cf8d576ec173283ebfe72fd373.tar.gz
cg-tools-9ecf9c624c5272cf8d576ec173283ebfe72fd373.tar.bz2
cg-tools-9ecf9c624c5272cf8d576ec173283ebfe72fd373.tar.xz
Fix warnings
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--src/cg-limits.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/cg-limits.c b/src/cg-limits.c
index b3a7ed7..6a071c7 100644
--- a/src/cg-limits.c
+++ b/src/cg-limits.c
@@ -15,9 +15,6 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#define _DEFAULT_SOURCE
-#define _BSD_SOURCE
-
#include "cg-base.h"
#include <libclut.h>
@@ -41,7 +38,7 @@ const int64_t default_priority = -(((int64_t)1) << 62);
/**
* The default class for the program
*/
-char* const default_class = PKGNAME "::cg-limits::standard";
+char default_class[] = PKGNAME "::cg-limits::standard";
@@ -562,6 +559,7 @@ int handle_args(int argc, char* argv[], char* method, char* site,
free(Cflag), Cflag = NULL;
errno = saved_errno;
return cleanup(-1);
+ (void) site;
}