Enlightenment CVS committal
Author : devilhorns
Project : e17
Module : apps/emprint
Dir : e17/apps/emprint/src/bin
Modified Files:
main.c
Log Message:
Fix case formatting.
===================================================================
RCS file: /cvs/e/e17/apps/emprint/src/bin/main.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- main.c 3 Jan 2008 22:03:57 -0000 1.8
+++ main.c 6 Jan 2008 21:32:24 -0000 1.9
@@ -168,47 +168,48 @@
/* parse the options provided by user */
while ((c = getopt_long_only(argc, argv, "d:a:t:g:q:hv", longopts, NULL))
!= -1)
{
- switch (c) {
- case 0: /* Flags were set.... do nothing. */
- break;
- case 'd':
- o->delay = atoi(optarg);
- break;
- case 'a':
- o->app = evas_stringshare_add(optarg);
- break;
- case 't':
- o->use_thumb = 1;
- o->thumb.filename = evas_stringshare_add(optarg);
- break;
- case 'g':
- o->use_thumb = 1;
- if (strstr(optarg, "x"))
- {
- sscanf(optarg, "%ix%i", &tw, &th);
- o->thumb.width = tw;
- o->thumb.height = th;
- }
- else
- {
- ts = atoi(optarg);
- if (ts < 1) ts = 1;
- else if (ts > 100) ts = 100;
- o->thumb.size = ts;
- }
- break;
- case 'q':
- o->quality = atoi(optarg);
- break;
- case 'v': /* Print version and bail */
- _em_print_version();
- break;
- case '?': /* ErrMsg is printed, then Fallthrough */
- case 'h': /* Fallthrough */
- default:
- _em_print_help();
- break;
- }
+ switch (c)
+ {
+ case 0: /* Flags were set.... do nothing. */
+ break;
+ case 'd':
+ o->delay = atoi(optarg);
+ break;
+ case 'a':
+ o->app = evas_stringshare_add(optarg);
+ break;
+ case 't':
+ o->use_thumb = 1;
+ o->thumb.filename = evas_stringshare_add(optarg);
+ break;
+ case 'g':
+ o->use_thumb = 1;
+ if (strstr(optarg, "x"))
+ {
+ sscanf(optarg, "%ix%i", &tw, &th);
+ o->thumb.width = tw;
+ o->thumb.height = th;
+ }
+ else
+ {
+ ts = atoi(optarg);
+ if (ts < 1) ts = 1;
+ else if (ts > 100) ts = 100;
+ o->thumb.size = ts;
+ }
+ break;
+ case 'q':
+ o->quality = atoi(optarg);
+ break;
+ case 'v': /* Print version and bail */
+ _em_print_version();
+ break;
+ case '?': /* ErrMsg is printed, then Fallthrough */
+ case 'h': /* Fallthrough */
+ default:
+ _em_print_help();
+ break;
+ }
}
/* The filename, if it exists, is expected to be the last command line arg
*/
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs