Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
d531c1a9
...
d531c1a9e844c1c6f2c13774b3f6ed62178cb557
authored
2002-12-10 15:01:46 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Added typecasts to shut the compiler warnings
1 parent
c1bedde5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
6 deletions
imap4d/auth_gss.c
libmu_scm/mu_body.c
libmu_scm/mu_message.c
mailbox/locker.c
imap4d/auth_gss.c
View file @
d531c1a
...
...
@@ -251,7 +251,7 @@ auth_gssapi (struct imap4d_command *command, char **username)
if
(
imap4d_gss_userok
(
&
client_name
,
*
username
))
{
syslog
(
LOG_NOTICE
,
"GSSAPI user %s is NOT authorized as %s"
,
client_name
.
value
,
*
username
);
(
char
*
)
client_name
.
value
,
*
username
);
util_finish
(
command
,
RESP_NO
,
"GSSAPI user %s is NOT authorized as %s"
,
client_name
.
value
,
*
username
);
...
...
@@ -264,7 +264,7 @@ auth_gssapi (struct imap4d_command *command, char **username)
else
{
syslog
(
LOG_NOTICE
,
"GSSAPI user %s is authorized as %s"
,
client_name
.
value
,
*
username
);
(
char
*
)
client_name
.
value
,
*
username
);
}
gss_release_buffer
(
&
min_stat
,
&
client_name
);
...
...
libmu_scm/mu_body.c
View file @
d531c1a
...
...
@@ -66,7 +66,8 @@ mu_scm_body_print (SCM body_smob, SCM port, scm_print_state * pstate)
scm_puts
(
buffer
,
port
);
scm_puts
(
"
\"
"
,
port
);
snprintf
(
buffer
,
sizeof
(
buffer
),
"%3ld %-5ld"
,
b_lines
,
b_size
);
snprintf
(
buffer
,
sizeof
(
buffer
),
"%3lu %-5lu"
,
(
unsigned
long
)
b_lines
,
(
unsigned
long
)
b_size
);
scm_puts
(
buffer
,
port
);
scm_puts
(
">"
,
port
);
...
...
libmu_scm/mu_message.c
View file @
d531c1a
...
...
@@ -109,7 +109,8 @@ mu_scm_message_print (SCM message_smob, SCM port, scm_print_state * pstate)
message_size
(
mum
->
msg
,
&
m_size
);
message_lines
(
mum
->
msg
,
&
m_lines
);
snprintf
(
buffer
,
sizeof
(
buffer
),
"%3ld %-5ld"
,
m_lines
,
m_size
);
snprintf
(
buffer
,
sizeof
(
buffer
),
"%3lu %-5lu"
,
(
unsigned
long
)
m_lines
,
(
unsigned
long
)
m_size
);
scm_puts
(
buffer
,
port
);
}
scm_puts
(
">"
,
port
);
...
...
mailbox/locker.c
View file @
d531c1a
...
...
@@ -629,10 +629,10 @@ _locker_lock_dotlock (locker_t lock)
gethostname
(
host
,
sizeof
(
host
));
host
[
MAXHOSTNAMELEN
]
=
0
;
snprintf
(
now
,
sizeof
(
now
),
"%
d"
,
time
(
0
));
snprintf
(
now
,
sizeof
(
now
),
"%
lu"
,
(
unsigned
long
)
time
(
0
));
now
[
sizeof
(
now
)
-
1
]
=
0
;
snprintf
(
pid
,
sizeof
(
pid
),
"%
d"
,
getpid
());
snprintf
(
pid
,
sizeof
(
pid
),
"%
lu"
,
(
unsigned
long
)
getpid
());
pid
[
sizeof
(
pid
)
-
1
]
=
0
;
sz
=
strlen
(
lock
->
file
)
+
1
/* "." */
...
...
Please
register
or
sign in
to post a comment