~bremby/grub4helenos/main

« back to all changes in this revision

Viewing changes to uspace/srv/devman/util.c

  • Committer: Dominik Taborsky
  • Date: 2013-11-21 18:22:43 UTC
  • mfrom: (1709.15.116 main-clone)
  • Revision ID: dominik_taborsky_brembyatseznamdotcz-20131121182243-hj3h7k9oscpbxilu
mainlineĀ merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
84
84
        return len;
85
85
}
86
86
 
87
 
void free_not_null(const void *ptr)
88
 
{
89
 
        if (ptr != NULL)
90
 
                free(ptr);
91
 
}
92
 
 
93
87
void replace_char(char *str, char orig, char repl)
94
88
{
95
89
        while (*str) {