Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=fw-control-center.git;a=commitdiff;h=c930390ce1dba624e37b752f8112ad9eeadc9169

commit c930390ce1dba624e37b752f8112ad9eeadc9169
Author: Priyank <[EMAIL PROTECTED]>
Date:   Thu Mar 27 12:58:36 2008 +0530

gnetconfig-misc: removed gnetconfig_get_ifname()
* this function is no longer needed

diff --git a/gnetconfig/src/gnetconfig-misc.c b/gnetconfig/src/gnetconfig-misc.c
index b94205f..945b351 100644
--- a/gnetconfig/src/gnetconfig-misc.c
+++ b/gnetconfig/src/gnetconfig-misc.c
@@ -2,8 +2,6 @@
*  gnetconfig-misc.c for gnetconfig
*
*  Copyright (C) 2007 by Priyank Gosalia <[EMAIL PROTECTED]>
- *  Parts borrowed from net-tools.
- *  The parts are Copyright (C) 1998, 2000 by Andi Kleen
*
*  This program is free software; you can redistribute it and/or modify
*  it under the terms of the GNU General Public License as published by
@@ -154,30 +152,3 @@ gnetconfig_get_wireless_mode_string (int mode)
return ret;
}

-char *
-gnetconfig_get_ifname (char *name, char *p)
-{
-    while (isspace(*p))
-       p++;
-    while (*p) {
-       if (isspace(*p))
-           break;
-       if (*p == ':') {        /* could be an alias */
-           char *dot = p, *dotname = name;
-           *name++ = *p++;
-           while (isdigit(*p))
-               *name++ = *p++;
-           if (*p != ':') {    /* it wasn't, backup */
-               p = dot;
-               name = dotname;
-           }
-           if (*p == '\0')
-               return NULL;
-           p++;
-           break;
-       }
-       *name++ = *p++;
-    }
-    *name++ = '\0';
-    return p;
-}
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to