* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#include "config.h"
+#include <config.h>
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
# include <sys/types.h>
#endif
-#include <sys/time.h>
#include <sys/uio.h>
#ifdef HAVE_UNISTD_H
static char* help_cmd(char** params _U_, char** err _U_) {
GString* out = g_string_new("Commands:\n");
cmd_t* c = commands;
- char* s;
for (;c->txt;c++) {
g_string_append_printf(out,"%s\n",c->help);
}
- s = out->str;
- g_string_free(out,FALSE);
- return s;
+ return g_string_free(out,FALSE);
}
}
static char* run_cmd(char** pars, char** err _U_) {
- FILE* fp = fopen(pars[1],"r");
+ FILE* fp = ws_stdio_fopen(pars[1],"r");
while(invoke_cmd(fp)) { ; }
fclose(fp);
return NULL;
echld_terminate();
return 0;
}
+
+/*
+ * Editor modelines - http://www.wireshark.org/tools/modelines.html
+ *
+ * Local variables:
+ * c-basic-offset: 8
+ * tab-width: 8
+ * indent-tabs-mode: t
+ * End:
+ *
+ * vi: set shiftwidth=8 tabstop=8 noexpandtab:
+ * :indentSize=8:tabSize=8:noTabs=false:
+ */