1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-01 13:26:44 +02:00

general cleanup: rm unused config.h, add license info to device.c/h, add a couple compiler options and fix warnings

This commit is contained in:
Jfreegman
2014-06-24 17:45:14 -04:00
parent 6490fa598c
commit ef097757f3
20 changed files with 53 additions and 76 deletions

View File

@ -20,10 +20,6 @@
*
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdlib.h>
#include <string.h>
#include <wchar.h>
@ -36,7 +32,7 @@
/* Adds char to line at pos */
void add_char_to_buf(ChatContext *ctx, wint_t ch)
{
if (ctx->pos < 0 || ctx->len >= MAX_STR_SIZE)
if (ctx->len >= MAX_STR_SIZE)
return;
wmemmove(&ctx->line[ctx->pos + 1], &ctx->line[ctx->pos], ctx->len - ctx->pos);