made changes to wmiir.c (/me thought would have been already fixed)

This commit is contained in:
Anselm R. Garbe 2006-02-24 17:20:25 +01:00
parent 313956abe0
commit 0e9d520cfb
2 changed files with 7 additions and 7 deletions

View File

@ -20,7 +20,7 @@ usage()
}
static void
print_sel(Display * dpy, Window w, XSelectionEvent * e)
print_sel(Display *dpy, Window w, XSelectionEvent * e)
{
Atom typeret;
int format;

View File

@ -224,7 +224,7 @@ xremove(char *file)
int
main(int argc, char *argv[])
{
int i = 0;
int ret = 0, i = 0;
char *cmd, *file, *address = getenv("WMII_ADDRESS");
/* command line args */
@ -262,18 +262,18 @@ main(int argc, char *argv[])
}
if(!strncmp(cmd, "create", 7))
xcreate(file);
ret = xcreate(file);
else if(!strncmp(cmd, "write", 6))
xwrite(file);
ret = xwrite(file);
else if(!strncmp(cmd, "read", 5))
xread(file);
ret = xread(file);
else if(!strncmp(cmd, "remove", 7))
xremove(file);
ret = xremove(file);
else
usage();
/* close socket */
ixp_client_hangup(&c);
return 0;
return ret;
}