d8dd69a586
xmmsctrl is a small utility to control XMMS from the command line. Its goal is to be used coupled with sh to test XMMS state and perform an appropriate action, e.g. if playing then pause else play. The interest of this is to bind keys in a window manager to have control over XMMS with keys that do play/next/pause, prev, control sound... WWW: http://user.it.uu.se/~adavid/utils/ PR: ports/86534 Submitted by: Jason E. Hale <jhale@bluebottle.com>
20 lines
597 B
C
20 lines
597 B
C
--- removefile.c.orig Thu Apr 1 08:26:19 2004
|
|
+++ removefile.c Thu Sep 22 13:41:04 2005
|
|
@@ -111,7 +111,7 @@
|
|
DIR *dir = opendir(".");
|
|
if (dir) {
|
|
/* xmms uses absolute paths */
|
|
- char *pwd = get_current_dir_name();
|
|
+ char *pwd = getcwd(NULL,PATH_MAX);
|
|
struct dirent *entry;
|
|
struct stat file_stat;
|
|
|
|
@@ -189,7 +189,7 @@
|
|
gint *remove_pos = (gint*) malloc(list_size*sizeof(gint));
|
|
|
|
if (remove_pos) {
|
|
- char *pwd = get_current_dir_name();
|
|
+ char *pwd = getcwd(NULL,PATH_MAX);
|
|
int root_len = strlen(pwd)+1; /* +1: jump appended / */
|
|
gint i;
|
|
|