Dolda2000 GitWeb
/
doldaconnect.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bleh
[doldaconnect.git]
/
clients
/
gtk2
/
main.c
diff --git
a/clients/gtk2/main.c
b/clients/gtk2/main.c
index
8aa487c
..
643d975
100644
(file)
--- a/
clients/gtk2/main.c
+++ b/
clients/gtk2/main.c
@@
-21,10
+21,10
@@
* inability to structure GUI programs properly. Looking at it too
* closely may cause ocular hemorrhaging. */
* inability to structure GUI programs properly. Looking at it too
* closely may cause ocular hemorrhaging. */
+#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
-#include <malloc.h>
#include <stdarg.h>
#include <gtk/gtk.h>
#include <sys/socket.h>
#include <stdarg.h>
#include <gtk/gtk.h>
#include <sys/socket.h>
@@
-1361,7
+1361,7
@@
void cb_main_lsres_activate(GtkWidget *widget, gpointer data)
void dcconnect(char *host)
{
void dcconnect(char *host)
{
- dcfd = dc_connect(host
, -1
);
+ dcfd = dc_connect(host);
if(dcfd < 0)
{
msgbox(GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, _("Could not connect:\n\n%s"), strerror(errno));
if(dcfd < 0)
{
msgbox(GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, _("Could not connect:\n\n%s"), strerror(errno));
@@
-2574,8
+2574,8
@@
int main(int argc, char **argv)
gtk_init(&argc, &argv);
dc_init();
signal(SIGCHLD, SIG_IGN);
gtk_init(&argc, &argv);
dc_init();
signal(SIGCHLD, SIG_IGN);
- pubhubaddr = sstrdup("http://www.hublist.org/PublicHubList.
config
.bz2");
- dcserver = sstrdup("
localhost
");
+ pubhubaddr = sstrdup("http://www.hublist.org/PublicHubList.
xml
.bz2");
+ dcserver = sstrdup("");
if((pwent = getpwuid(getuid())) == NULL)
{
fprintf(stderr, "could not get your passwd data");
if((pwent = getpwuid(getuid())) == NULL)
{
fprintf(stderr, "could not get your passwd data");