Page MenuHomeDevCentral

D2395.id6022.diff
No OneTemporary

D2395.id6022.diff

diff --git a/source/chan.c b/source/chan.c
--- a/source/chan.c
+++ b/source/chan.c
@@ -88,7 +88,7 @@
if (number == 0)
{
L016 (target, who);
- return;
+ return NULL;
}
else
result /= number;
@@ -97,14 +97,14 @@
if ((long) number == 0)
{
L016 (target, who);
- return;
+ return NULL;
}
else
result = (double) ((long) result % (long) number);
break;
default:
L017 (target, who);
- return;
+ return NULL;
}
}
return chanserv_asprintf(NULL, "%f\n", result);
diff --git a/source/chansrv.c b/source/chansrv.c
--- a/source/chansrv.c
+++ b/source/chansrv.c
@@ -609,7 +609,7 @@
}
if ((db_argstostr (command, args, 0, ' ')) < 1)
- return;
+ return NULL;
chan = (invoked == MSG_INVOKE) ? "#*" : target;
user_level = check_access(userhost, chan, 0, source);
@@ -1397,7 +1397,7 @@
return chanserv_asprintf (NULL, "My %s variables are: ^ nick, %% number of joins, & Channel, $ user@host. Example: !setinfo ^ has joined & %% times (also, if you make the first char of your %s a \"+\", the %s will be shown as an ACTION).", cmd, cmd, cmd);
if ((db_argstostr (greeting, args, 0, ' ')) < 1)
- return;
+ return NULL;
update_setinfo (userhost, greeting, source);
return (result);
diff --git a/source/stats.c b/source/stats.c
--- a/source/stats.c
+++ b/source/stats.c
@@ -48,7 +48,7 @@
if ((ptr = strchr (temp, '\n')) != NULL)
*ptr = '\0';
result = chanserv_asprintf(result, "%s has asked %ld questions since %s, %s's last question was asked on %s", user, c->total, temp, user, ctime (&last_time));
- return;
+ return NULL;
}
}
c = c->next;

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 5, 17:15 (6 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2230667
Default Alt Text
D2395.id6022.diff (1 KB)

Event Timeline