1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-05 22:43:24 +00:00
freebsd-ports/graphics/quickpics/files/patch-ab
Steve Price 82fb56cb2f Adding quickpics version 1.8.
A really handy tool for large image collections and digital cameras.

PR:		17316
Submitted by:	Stever <stever@transmission23.com>
2000-05-01 02:51:56 +00:00

48 lines
1.0 KiB
Plaintext

--- main.c.orig Sun Apr 30 18:43:28 2000
+++ main.c Sun Apr 30 18:44:14 2000
@@ -21,7 +21,7 @@
/* Prototypes */
void do_arg(char *arg);
-void main(int argc, char **argv)
+int main(int argc, char **argv)
{
char cwd[MAXTEXTLEN], yn[1024];
int first_time = 0, i;
@@ -53,7 +53,7 @@
if(!IsDirectory(QP.rootdir))
{
printf("*** ERROR: \"%s\" is not a directory.\n",QP.rootdir);
- return;
+ return 1;
}
chmod(QP.rootdir,0755);
@@ -62,7 +62,7 @@
if(chdir(QP.rootdir) != 0)
{
printf("*** ERROR: Unable to change to directory \"%s\".\n",QP.rootdir);
- return;
+ return 1;
}
/* Read configfile from specified directory. */
@@ -102,7 +102,7 @@
printf(" Execution halted.\n");
printf(" Config file is: %s/%s.\n",BaseFilename(QP.rootdir),QP.configfile);
printf("\n");
- return;
+ return 1;
}
printf("\n");
@@ -169,7 +169,7 @@
printf(" Use the link \"%s/%s\" to view the gallery.\n",BaseFilename(QP.rootdir),QP.index_html);
printf(" Have fun!\n");
printf("\n");
- return;
+ return 0;
}
void do_arg(char *arg)