Quick Search:

Mode

Context

Displaying 3 lines of context. None | Less | More | Full

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.99
 
1.100
 
MAIN:gmcgarry:20080619074438
 
cc.c
_>794794 }
 795795 
 796796 int
<>797 -getsuf(char *as)
  797+getsuf(char *s)
798798 {
<>799 -        register char *s;
  799+        register char *p;
800800 
<>801 -        if ((s = strrchr(as, '.')) && s[1] != '\0' && s[2] == '\0')
 802 -                return s[1];
  801+        if ((p = strrchr(s, '.')) && p[1] != '\0' && p[2] == '\0')
  802+                return p[1];
803803         return(0);
 804804 }
 805805 
     
 !
809809 char *
 810810 setsuf(char *s, char ch)
 811811 {
<>812 -        char *as;
  812+        char *p;
813813 
 814814         s = copy(basename(s), 2);
<>815 -        if ((as = strrchr(s, '.')) == NULL) {
 816 -                as = s + strlen(s);
 817 -                as[0] = '.';
  815+        if ((p = strrchr(s, '.')) == NULL) {
  816+                p = s + strlen(s);
  817+                p[0] = '.';
818818         }
<>819 -        as[1] = ch;
 820 -        as[2] = '\0';
  819+        p[1] = ch;
  820+        p[2] = '\0';
821821         return(s);
 822822 }
 823823 
     
 !
924924  * Make a copy of string as, mallocing extra bytes in the string.
 925925  */
 926926 char *
<>927 -copy(char *as, int extra)
  927+copy(char *s, int extra)
928928 {
<>929 -        int len = strlen(as)+1;
  929+        int len = strlen(s)+1;
930930         char *rv;
 931931 
 932932         rv = ccmalloc(len+extra);
<>933 -        strlcpy(rv, as, len);
  933+        strlcpy(rv, s, len);
<_934934         return rv;
 935935 }
 936936 
FishEye: Open Source License registered to PCC.
Atlassian FishEye, CVS analysis. (Version:1.6.3 Build:build-336 2008-11-04) - Administration - Page generated 2014-12-19 04:16 +0100