int
sm_wtend (void)
{
- if (sm_wstream ((char *) NULL, 0) == NOTOK)
+ if (sm_wstream(NULL, 0) == NOTOK)
return RP_BHST;
switch (smtalk (SM_DOT + 3 * sm_addrs, ".")) {
if (strcmp (name, ".") == 0) {
prefix = mh_xstrdup("");
} else {
- prefix = concat (name, "/", (void *)NULL);
+ prefix = concat(name, "/", NULL);
}
while ((dp = readdir (dd))) {
if (!strcmp (dp->d_name, ".") || !strcmp (dp->d_name, "..")) {
continue;
}
- child = concat (prefix, dp->d_name, (void *)NULL);
+ child = concat(prefix, dp->d_name, NULL);
/* If we have no d_type or d_type is DT_LNK or DT_UNKNOWN, stat the
* child to see what it is. */
if (child_is_folder == -1) {
#define yyterminate() (void)yy_delete_buffer(lexhandle); \
if(!(tw.tw_flags & TW_SUCC)) { \
- return (struct tws *)NULL; \
+ return NULL; \
} \
if(tw.tw_year < 1970) \
tw.tw_year += 1900; \
{
char *cp = sp;
struct format *fexpr,
- *fif = (struct format *)NULL;
+ *fif = NULL;
int c = '<';
for (;;) {
fif = fp; /* loc of GOTO */
fexpr->f_skip = next_fp - fexpr;
- fexpr = (struct format *)NULL;/* no extra ENDIF */
+ fexpr = NULL; /* no extra ENDIF */
cp = compile (cp); /* compile ELSE stmts */
fif->f_skip = next_fp - fif;
if (curl_ctx->res_len > 0
&& is_json(curl_ctx->content_type)
&& get_json_strings(curl_ctx->res_body, curl_ctx->res_len, ctx->log,
- "error", &error, (void *)NULL)
+ "error", &error, NULL)
&& error != NULL) {
if (strcmp(error, "invalid_grant") == 0) {
code = MH_OAUTH_BAD_GRANT;
"client_id", ctx->svc.client_id,
"redirect_uri", ctx->svc.redirect_uri,
"scope", ctx->svc.scope,
- (void *)NULL)) {
+ NULL)) {
set_err(ctx, MH_OAUTH_REQUEST_INIT);
return NULL;
}
"access_token", &access_token,
"expires_in", &expires_in,
"refresh_token", &refresh_token,
- (void *)NULL)) {
+ NULL)) {
goto out;
}
"redirect_uri", ctx->svc.redirect_uri,
"client_id", ctx->svc.client_id,
"client_secret", ctx->svc.client_secret,
- (void *)NULL)) {
+ NULL)) {
set_err(ctx, MH_OAUTH_REQUEST_INIT);
return NULL;
}
"refresh_token", cred->refresh_token,
"client_id", ctx->svc.client_id,
"client_secret", ctx->svc.client_secret,
- (void *)NULL)) {
+ NULL)) {
set_err(ctx, MH_OAUTH_REQUEST_INIT);
return false;
}
NMH_UNUSED (end);
- matches = (char **) NULL;
+ matches = NULL;
if (start == 0)
matches = rl_completion_matches(text, nmh_command_generator);
return NULL;
/* get filename of sequence file */
- seqfile = concat(m_maildir(folder), "/", mh_seq, (void *)NULL);
+ seqfile = concat(m_maildir(folder), "/", mh_seq, NULL);
if (seqfile == NULL)
return NULL;
} else {
old_msgnums = msgnums;
msgnums = concat(old_msgnums, " ",
- this_msgnums, (void *)NULL);
+ this_msgnums, NULL);
free(old_msgnums);
free(this_msgnums);
}
} else {
old_msgnums = msgnums;
msgnums = concat(old_msgnums, " ",
- this_msgnums, (void *)NULL);
+ this_msgnums, NULL);
free(old_msgnums);
free(this_msgnums);
}
/* TODO: Split enough of scan.c out so that we can call it here. */
command = concat("scan +", node->n_name, " ", sequences_s,
- (void *)NULL);
+ NULL);
status = system(command);
if (! WIFEXITED (status)) {
adios (command, "system");