commands take buf, bad commmands dont segfault
parent
5340cd4ef2
commit
39ab7a9055
|
@ -1,3 +1,3 @@
|
|||
void (*commands[256])() = {
|
||||
void (*commands[256])(char *) = {
|
||||
NULL,
|
||||
['q'] = c_quit,
|
||||
|
|
7
efn.h
7
efn.h
|
@ -1,4 +1,7 @@
|
|||
extern void (*commands[256])();
|
||||
#include <stdlib.h>
|
||||
#include "globals.h"
|
||||
|
||||
void c_quit();
|
||||
extern void (*commands[256])(char *);
|
||||
|
||||
void c_quit(char *);
|
||||
|
||||
|
|
Loading…
Reference in New Issue