From c8f409de751a8a9b8e7d33c81c86faf70a542b5f Mon Sep 17 00:00:00 2001 From: Daniel Jones Date: Tue, 12 Mar 2019 11:03:32 +1030 Subject: some comments --- urlopen.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/urlopen.c b/urlopen.c index 97463cd..7b76428 100644 --- a/urlopen.c +++ b/urlopen.c @@ -31,6 +31,10 @@ char *programs[][2] = { + /* + * the file extensions and program to associate with them + * separate extensions using ',' + */ {"default", /* this is the default program */ "/usr/bin/qutebrowser"}, {"jpg,jpeg,png", "/usr/bin/feh"}, {"gif,gifv,webm,mp4,mp3,wav,flac", "/usr/bin/mpv --loop --force-window=yes"}, @@ -80,7 +84,7 @@ getext(char *url) { /* * check if the extension of the url (if exists) is in our array - * if it is, return the index on the array, otherwise 0 + * if it is, return the index in the array, otherwise 0 */ int ret = 0; char *p = NULL; -- cgit v1.2.3