]> jfr.im git - solanum.git/commitdiff
remove unused variables
authorSimon Arlott <sa.me.uk>
Fri, 4 Aug 2017 18:56:29 +0000 (19:56 +0100)
committerSimon Arlott <sa.me.uk>
Fri, 4 Aug 2017 19:02:20 +0000 (20:02 +0100)
authd/providers/opm.c
ircd/modules.c
ircd/wsproc.c
modules/cap_server_time.c
modules/core/m_join.c
modules/m_cap.c

index d6cd0b5424a0397e668be6048452ecd60155fd0d..fe84fdd4cbad7c7301e27f6e14c112afb30517ed 100644 (file)
@@ -370,7 +370,6 @@ socks5_connected(struct opm_scan *scan)
 static void
 http_connect_connected(struct opm_scan *scan)
 {
-       struct auth_client *auth = scan->auth;
        char sendbuf[128]; /* A bit bigger than we need but better safe than sorry */
 
        /* Simple enough to build */
index 63e94cfd8c41a8869ff651b8a5c245c19a6c39a7..e1d9a564790c1e6aba98d2cfa00da1effee14d70 100644 (file)
@@ -428,7 +428,6 @@ load_a_module(const char *path, bool warn, int origin, bool core)
        lt_dlhandle tmpptr;
        char *mod_displayname, *c;
        const char *ver, *description = NULL;
-       size_t module_ext_len = strlen(LT_MODULE_EXT);
 
        int *mapi_version;
 
index 61c27aaf1f3040ed51956ec742955eed0515eb6e..b11b0f3d01c84f54fc72c81b113d9bd157a49d00 100644 (file)
@@ -37,9 +37,6 @@
 static void ws_read_ctl(rb_fde_t * F, void *data);
 static int wsockd_count;
 
-static char tmpbuf[READBUF_SIZE];
-static char nul = '\0';
-
 #define MAXPASSFD 4
 #define READSIZE 1024
 typedef struct _ws_ctl_buf
index 06eea3ddb324d2211b21c827083c08aa4bc77b56..7371279dd62a7fac39e1217db6d816f7cca1f5e2 100644 (file)
@@ -55,7 +55,6 @@ cap_server_time_process(hook_data *data)
        static char buf[BUFSIZE];
        struct MsgBuf *msgbuf = data->arg1;
        struct timeval tv;
-       time_t ts = rb_current_time();
 
        if (!rb_gettimeofday(&tv, NULL)) {
                if (strftime(buf, sizeof(buf), "%Y-%m-%dT%H:%M:%S.", gmtime(&tv.tv_sec)) < 0)
index eb6056dae6c2f4850727d3b3043b8582c29584f1..ae75f86fb549c8d5bee1ecf091765e38992d0b3c 100644 (file)
@@ -144,7 +144,6 @@ static void
 m_join(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
 {
        static char jbuf[BUFSIZE];
-       static char parabuf[MODEBUFLEN];
        struct Channel *chptr = NULL, *chptr2 = NULL;
        struct ConfItem *aconf;
        char *name;
index e050946b334c7fc1e7f3ef1fd4e46d84d75f9854..6dc58cbab55d71433ea407f945e132461d3f48e4 100644 (file)
@@ -326,7 +326,6 @@ cap_req(struct Client *source_p, const char *arg)
        for(cap = clicap_find(arg, &negate, &finished); cap;
            cap = clicap_find(NULL, &negate, &finished))
        {
-               size_t namelen = strlen(cap->cap);
                const char *type;
 
                if(negate)