mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-04-14 17:00:45 +02:00
2005-08-30 Bastien Nocera <hadess@hadess.net>
* test/nmtestdevices.c: (print_usage), (main): Check the number of arguments, and fix a typo git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@910 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
parent
bea4a6e13c
commit
41885daa5b
2 changed files with 11 additions and 1 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2005-08-30 Bastien Nocera <hadess@hadess.net>
|
||||
|
||||
* test/nmtestdevices.c: (print_usage), (main):
|
||||
Check the number of arguments, and fix a typo
|
||||
|
||||
2005-08-29 Dan Williams <dcbw@redhat.com>
|
||||
|
||||
Patch from Dumitru Ciobarcianu <Dumitru.Ciobarcianu@iNES.RO>
|
||||
|
|
|
|||
|
|
@ -176,7 +176,7 @@ static void print_usage (void)
|
|||
"This tool allows you to tell NetworkManager to create and manipulate fake 'test' devices. This\n"
|
||||
"is useful in sitation where you may not have a particular device but still want to test\n"
|
||||
"NetworkManager out with it (For example, you forgot your wireless card at home and now you're\n"
|
||||
"taking a trip and want to hack on NM, and you're on a plane so you could use the wireless\n"
|
||||
"taking a trip and want to hack on NM, and you're on a plane so you couldn't use the wireless\n"
|
||||
"card anyway).\n"
|
||||
"\n");
|
||||
}
|
||||
|
|
@ -193,6 +193,11 @@ int main( int argc, char *argv[] )
|
|||
gboolean make_link_inactive = FALSE;
|
||||
NMDeviceType dev_type = DEVICE_TYPE_DONT_KNOW;
|
||||
|
||||
if (argc < 2) {
|
||||
print_usage ();
|
||||
exit (0);
|
||||
}
|
||||
|
||||
/* Parse options */
|
||||
while (1)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue