Mercurial > hg > Applications > mh
comparison uip/folder.c @ 16:07f8972434be
fix for Yosemita Clang
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 12 Nov 2014 02:46:27 +0900 |
parents | 441a2190cfae |
children |
comparison
equal
deleted
inserted
replaced
15:1891194b739c | 16:07f8972434be |
---|---|
9 #include <stdio.h> | 9 #include <stdio.h> |
10 #ifdef LOCALE | 10 #ifdef LOCALE |
11 #include <locale.h> | 11 #include <locale.h> |
12 #endif | 12 #endif |
13 | 13 |
14 static dodir(), addir(), addfold(), dother(); | 14 static void dodir(), addir(), addfold(), dother(); |
15 static int pfold(), sfold(), compare(); | 15 static int pfold(), sfold(), compare(); |
16 /* */ | 16 /* */ |
17 | 17 |
18 static struct swit switches[] = { | 18 static struct swit switches[] = { |
19 #define ALLSW 0 | 19 #define ALLSW 0 |
137 (void) copyip (argv + 1, ap); | 137 (void) copyip (argv + 1, ap); |
138 argp = arguments; | 138 argp = arguments; |
139 | 139 |
140 /* */ | 140 /* */ |
141 | 141 |
142 while (cp = *argp++) { | 142 while ((cp = *argp++)) { |
143 if (*cp == '-') | 143 if (*cp == '-') |
144 switch (smatch (++cp, switches)) { | 144 switch (smatch (++cp, switches)) { |
145 case AMBIGSW: | 145 case AMBIGSW: |
146 ambigsw (cp, switches); | 146 ambigsw (cp, switches); |
147 done (1); | 147 done (1); |
371 done (0); | 371 done (0); |
372 } | 372 } |
373 | 373 |
374 /* */ | 374 /* */ |
375 | 375 |
376 static dodir (dir) | 376 static void dodir (dir) |
377 register char *dir; | 377 register char *dir; |
378 { | 378 { |
379 int i; | 379 int i; |
380 int os = start; | 380 int os = start; |
381 int of = foldp; | 381 int of = foldp; |
539 return mp; | 539 return mp; |
540 } | 540 } |
541 | 541 |
542 /* */ | 542 /* */ |
543 | 543 |
544 static addir (name) | 544 static void addir (name) |
545 register char *name; | 545 register char *name; |
546 { | 546 { |
547 register char *base, | 547 register char *base, |
548 *cp; | 548 *cp; |
549 struct stat st; | 549 struct stat st; |
586 *--cp = '\0'; | 586 *--cp = '\0'; |
587 } | 587 } |
588 | 588 |
589 /* */ | 589 /* */ |
590 | 590 |
591 static addfold (fold) | 591 static void addfold (fold) |
592 register char *fold; | 592 register char *fold; |
593 { | 593 { |
594 register int i, | 594 register int i, |
595 j; | 595 j; |
596 register char *cp; | 596 register char *cp; |
630 return 0; | 630 return 0; |
631 } | 631 } |
632 | 632 |
633 /* */ | 633 /* */ |
634 | 634 |
635 static dother () { | 635 static void dother () { |
636 int atrlen; | 636 int atrlen; |
637 char atrcur[BUFSIZ]; | 637 char atrcur[BUFSIZ]; |
638 register struct node *np; | 638 register struct node *np; |
639 | 639 |
640 (void) sprintf (atrcur, "atr-%s-", current); | 640 (void) sprintf (atrcur, "atr-%s-", current); |