View Single Post
electroaudio's Avatar
Posts: 381 | Thanked: 336 times | Joined on Jan 2011 @ Stockholm, Sweden
#6
That feels much better, but now i get a lot of "incompatible types in assignment" errors from the compiler when the string is used instead.

Is it possible to rewrite the functions below to work again with this stringdefinition?

Code:
mime_icon_name=NULL;
if ((mime_icon_name=strrchr(fullpath, '.'))==0)
mime_icon_name=g_strconcat (".noext-exe","\0",NULL);
mime_icon_name=g_strconcat (".noext","\0",NULL);
It didnt complain about these lines, but do they still work as expected?

Code:
.. && (mime_icon_name[counter]!=0) 
mychar=mime_icon_name[counter];
xxx[counter]=(tolower(mychar));
__________________
Deskypplet , a desktop for N900 *RIP*

Last edited by electroaudio; 2012-04-14 at 19:26.