Changeset fa4562c
- Timestamp:
- Aug 15, 2009, 7:08:18 PM (14 years ago)
- Branches:
- master, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- e19eb97
- Parents:
- 65b2173
- git-author:
- Anders Kaseorg <andersk@mit.edu> (08/04/09 02:59:42)
- git-committer:
- Anders Kaseorg <andersk@mit.edu> (08/15/09 19:08:18)
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
aim.c
r5227de4 rfa4562c 1671 1671 for (i=0; i<num; i++) { 1672 1672 owl_function_debugmsg(" %s", &SNs[i*(MAXSNLEN+1)]); 1673 owl_list_append_element(&list, &SNs[i*(MAXSNLEN+1)]);1673 owl_list_append_element(&list, (void *)&SNs[i*(MAXSNLEN+1)]); 1674 1674 } 1675 1675 owl_function_aimsearch_results(address, &list); -
cmd.c
r65b2173 rfa4562c 211 211 return NULL; 212 212 } 213 ival = strtol(argv[1], &ep, 10);213 ival = strtol(argv[1], (char **)&ep, 10); 214 214 if (*ep || ep==argv[1]) { 215 215 owl_function_makemsg("Invalid argument '%s' for %s command.", argv[1], argv[0]); -
commands.c
r65b2173 rfa4562c 2465 2465 } 2466 2466 filtname = owl_view_get_filtname(owl_global_get_current_view(&g)); 2467 if (filtname) filtname =owl_strdup(filtname);2468 return filtname;2467 if (filtname) return owl_strdup(filtname); 2468 return NULL; 2469 2469 } 2470 2470 … … 2566 2566 } 2567 2567 stylename = owl_view_get_style_name(owl_global_get_current_view(&g)); 2568 if (stylename) stylename =owl_strdup(stylename);2569 return stylename;2568 if (stylename) return owl_strdup(stylename); 2569 return NULL; 2570 2570 } 2571 2571 -
obarray.c
r4d86e06 rfa4562c 55 55 i = owl_obarray_lookup(oa, string, &v); 56 56 if(!v) { 57 v = owl_strdup(string); 58 owl_list_insert_element(&(oa->strings), i, v); 57 char *v2 = owl_strdup(string); 58 owl_list_insert_element(&(oa->strings), i, v2); 59 return v2; 59 60 } 60 61 return v; -
perlconfig.c
r65b2173 rfa4562c 26 26 HV *h, *stash; 27 27 SV *hr; 28 char *ptr, *blessas, *type; 28 char *type; 29 char *ptr, *utype, *blessas; 29 30 int i, j; 30 31 owl_pair *pair; … … 95 96 type = owl_message_get_type(m); 96 97 if(!type || !*type) type = "generic"; 97 type = owl_strdup(type);98 type[0] = toupper(type[0]);99 blessas = owl_sprintf("BarnOwl::Message::%s", type);98 utype = owl_strdup(type); 99 utype[0] = toupper(type[0]); 100 blessas = owl_sprintf("BarnOwl::Message::%s", utype); 100 101 101 102 hr = newRV_noinc((SV*)h); … … 106 107 } 107 108 hr = sv_bless(hr,stash); 108 owl_free( type);109 owl_free(utype); 109 110 owl_free(blessas); 110 111 return hr; … … 312 313 owl_global_set_no_have_config(&g); 313 314 314 ret=perl_parse(p, owl_perl_xs_init, 2, args, NULL);315 ret=perl_parse(p, owl_perl_xs_init, 2, (char **)args, NULL); 315 316 if (ret || SvTRUE(ERRSV)) { 316 317 err=owl_strdup(SvPV_nolen(ERRSV)); -
util.c
r65b2173 rfa4562c 561 561 { 562 562 char buff[LINE], *text; 563 char *backupfilename= "";563 char *backupfilename=NULL; 564 564 FILE *file, *backupfile=NULL; 565 565 int size, newline; … … 650 650 char *start, *end; 651 651 652 start = class; 653 while(!strncmp(start, "un", 2)) { 654 start += 2; 655 } 656 657 start = owl_strdup(start); 652 while(!strncmp(class, "un", 2)) { 653 class += 2; 654 } 655 656 start = owl_strdup(class); 658 657 end = start + strlen(start) - 1; 659 658 while(end > start && *end == 'd' && *(end-1) == '.') { -
variable.c
rdefe4a3 rfa4562c 905 905 int i; 906 906 char *ep = "x"; 907 i = strtol(newval, &ep, 10);907 i = strtol(newval, (char **)&ep, 10); 908 908 if (*ep || ep==newval) return(-1); 909 909 return (v->set_fn(v, &i)); … … 1015 1015 int numfailed=0; 1016 1016 char buf[1024]; 1017 owl_variable *v;1017 void *v; 1018 1018 1019 1019 in_regtest = 1; -
zephyr.c
r712caac rfa4562c 1211 1211 1212 1212 /* bail immeaditly if we don't have to do any work */ 1213 ptr=strchr( in, '.');1214 if (!strchr( in, '/') && !ptr) {1213 ptr=strchr(out, '.'); 1214 if (!strchr(out, '/') && !ptr) { 1215 1215 /* no '/' and no '.' */ 1216 1216 return(out); 1217 1217 } 1218 if (ptr && strchr( in, '@') && (ptr > strchr(in, '@'))) {1218 if (ptr && strchr(out, '@') && (ptr > strchr(out, '@'))) { 1219 1219 /* There's a '.' but it's in the realm */ 1220 1220 return(out); 1221 1221 } 1222 if (!strncasecmp( in, OWL_WEBZEPHYR_PRINCIPAL, strlen(OWL_WEBZEPHYR_PRINCIPAL))) {1222 if (!strncasecmp(out, OWL_WEBZEPHYR_PRINCIPAL, strlen(OWL_WEBZEPHYR_PRINCIPAL))) { 1223 1223 return(out); 1224 1224 } 1225 1225 1226 /* remove the realm from ptr, but hold on to it */1226 /* remove the realm from out, but hold on to it */ 1227 1227 realm=strchr(out, '@'); 1228 1228 if (realm) realm[0]='\0';
Note: See TracChangeset
for help on using the changeset viewer.