Modified in acordance to coding guidelines.
[glsdk/dual-decode.git] / src / main.c
index 9fa6608869242e87996f328f0fb4240d72dd51d4..37121748e95fae2b01af97fe43c5a751600f8ad8 100644 (file)
@@ -71,7 +71,6 @@ gint setAbsolutePathname (gchar *file, gchar **uri)
        }       
 
        if (NULL == file){
        }       
 
        if (NULL == file){
-               /*A BUG Here*/
                g_printerr("BUG: file: " __FILE__ " line: %d" "\n", __LINE__);          
                return ERR_BUG;
        }
                g_printerr("BUG: file: " __FILE__ " line: %d" "\n", __LINE__);          
                return ERR_BUG;
        }
@@ -79,7 +78,6 @@ gint setAbsolutePathname (gchar *file, gchar **uri)
        *uri = (gchar *) g_malloc (sizeof(gchar) * PATH_MAX_LEN);          
        realPath = realpath (file, realPath);
        if (NULL == realPath) {
        *uri = (gchar *) g_malloc (sizeof(gchar) * PATH_MAX_LEN);          
        realPath = realpath (file, realPath);
        if (NULL == realPath) {
-               /*TODO: a debug trace here*/
                g_printerr ("File %s not found\n", file);
                ret = ERR_FILENOTFOUND;
                goto destroy;   
                g_printerr ("File %s not found\n", file);
                ret = ERR_FILENOTFOUND;
                goto destroy;   
@@ -119,7 +117,6 @@ gint processOpts()
                        decodeMode++;
                        filename[fileCount] = uri;
                }else{
                        decodeMode++;
                        filename[fileCount] = uri;
                }else{
-                       /*TODO: A debug trace here*/
                        g_printerr("Ignoring file : %s\n",files[fileCount]);
                }
                fileCount++;
                        g_printerr("Ignoring file : %s\n",files[fileCount]);
                }
                fileCount++;
@@ -149,7 +146,6 @@ gint processArgs (int *argc, char **argv[])
                                                                                                                                                                
        /* Parse the command line arguments and options*/                                                  
        if (!g_option_context_parse (context, argc, argv, &error)) {                       
                                                                                                                                                                
        /* Parse the command line arguments and options*/                                                  
        if (!g_option_context_parse (context, argc, argv, &error)) {                       
-               /*TODO: a debug trace here*/
                g_printerr ("option parsing failed: %s\n", error->message);                               
                g_error_free(error);
                return ERR_OPTIONPARSE;                                                                                                                          
                g_printerr ("option parsing failed: %s\n", error->message);                               
                g_error_free(error);
                return ERR_OPTIONPARSE;