Skip to content
Commits on Source (2)
  • Andrew Price's avatar
    Update list.h · 0aae6af9
    Andrew Price authored
    Requires build flag tweaks to make container_of() work. (-pedantic
    doesn't make much sense with -std=gnu99 anyway).
    0aae6af9
  • Andrew Price's avatar
    Misc tidy-ups · 9aeb1f47
    Andrew Price authored
    9aeb1f47
SHELL = /bin/bash
GITVER = $(shell git describe --always --dirty)
VERSION = $(GITVER)
......@@ -33,7 +31,6 @@ WARNINGS = \
-Wall \
-Wshadow \
-Wmissing-prototypes \
-Wpointer-arith \
-Wwrite-strings \
-Wcast-align \
-Wbad-function-cast \
......@@ -70,7 +67,7 @@ else
MWLDFLAGS += -O0
endif
MWCFLAGS = -std=gnu99 -pedantic -g $(DEFS) $(CCSEC) $(WARNINGS)
MWCFLAGS = -std=gnu99 -g $(DEFS) $(CCSEC) $(WARNINGS)
ifneq ($(RELEASE_BUILD),0)
MWCFLAGS += -O2
# This requires optimisation so add it here instead of CCSEC
......
......@@ -11,7 +11,6 @@
#include "talker_privs.h"
#include "special.h"
#include "talker.h"
#include <gags.h>
#include "str_util.h"
#include "strings.h"
#include "special.h"
......@@ -168,13 +167,13 @@ void t_who(CommandList *cm, int argc, const char **argv, char *args)
display_wholist(0);
}
void t_what(CommandList *cm, int argc, const const char **argv, char *args)
void t_what(CommandList *cm, int argc, const char **argv, char *args)
{
//who_list(1);
display_wholist(1);
}
void t_uptime(CommandList *cm, int argc, const const char **argv, char *args)
void t_uptime(CommandList *cm, int argc, const char **argv, char *args)
{
ipc_message_t * msg = ipcmsg_create(IPC_UPTIME, user->posn);
ipcmsg_transmit(msg);
......
......@@ -8,7 +8,7 @@ void t_bind(CommandList *cm, int argc, const char **argv, char *args);
void t_unbind(CommandList *cm, int argc, const char **argv, char *args);
void t_scrhelp(CommandList *cm, int argc, const char **argv, char *args);
void t_who(CommandList *cm, int argc, const char **argv, char *args);
void t_what(CommandList *cm, int argc, const const char **argv, char *args);
void t_what(CommandList *cm, int argc, const char **argv, char *args);
void t_help(CommandList *cm, int argc, const char **argv, char *args);
void t_quit(CommandList *cm, int argc, const char **argv, char *args);
void t_script(CommandList *cm, int argc, const char **argv, char *args);
......
......@@ -8,7 +8,6 @@
#include <gags.h>
#include "main.h"
#include "user.h"
#include <gags.h>
#include <util.h>
extern struct user * const user;
......
This diff is collapsed.
......@@ -4,7 +4,6 @@
#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/epoll.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
......
#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/epoll.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
......