Get rid of some warnings on Win64.
svn path=/trunk/; revision=37447
This commit is contained in:
parent
ba086053c7
commit
9e22269a58
1 changed files with 7 additions and 2 deletions
|
@ -84,7 +84,8 @@
|
||||||
void
|
void
|
||||||
ssl_export_sessions_func(gpointer key, gpointer value, gpointer user_data)
|
ssl_export_sessions_func(gpointer key, gpointer value, gpointer user_data)
|
||||||
{
|
{
|
||||||
guint i,offset;
|
guint i;
|
||||||
|
size_t offset;
|
||||||
StringInfo* sslid = (StringInfo*)key;
|
StringInfo* sslid = (StringInfo*)key;
|
||||||
StringInfo* mastersecret = (StringInfo*)value;
|
StringInfo* mastersecret = (StringInfo*)value;
|
||||||
StringInfo* keylist = (StringInfo*)user_data;
|
StringInfo* keylist = (StringInfo*)user_data;
|
||||||
|
@ -179,7 +180,11 @@ savesslkeys_save_clicked_cb(GtkWidget * w _U_, gpointer data _U_)
|
||||||
g_free(file);
|
g_free(file);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
if (ws_write(fd, keylist->data, strlen(keylist->data)) < 0) {
|
/*
|
||||||
|
* Thanks, Microsoft, for not using size_t for the third argument to
|
||||||
|
* _write(). Presumably this string will be <= 4GiB long....
|
||||||
|
*/
|
||||||
|
if (ws_write(fd, keylist->data, (unsigned int)strlen(keylist->data)) < 0) {
|
||||||
write_failure_alert_box(file, errno);
|
write_failure_alert_box(file, errno);
|
||||||
ws_close(fd);
|
ws_close(fd);
|
||||||
g_free(keylist);
|
g_free(keylist);
|
||||||
|
|
Loading…
Reference in a new issue