mirror of
https://git.code.sf.net/p/ngspice/ngspice
synced 2026-08-22 05:47:42 +02:00
polish to prevent warning
This commit is contained in:
+1
-1
@@ -1132,4 +1132,4 @@ evl:
|
||||
#endif /* ~ SIMULATOR */
|
||||
|
||||
return sp_shutdown(EXIT_NORMAL);
|
||||
}
|
||||
}
|
||||
|
||||
+3
-3
@@ -217,9 +217,9 @@ dirname(const char *name)
|
||||
len = strlen(name);
|
||||
p = &name[len - 1];
|
||||
|
||||
if (*p == '/') p--; // skip the trailing /
|
||||
if (*p == '/') p--; /* skip the trailing / */
|
||||
|
||||
if (*p == '\\') p--; // skip the trailing \
|
||||
if (*p == '\\') p--; /* skip the trailing \ */
|
||||
|
||||
while (p != name && *p != '/' && *p != '\\') p--;
|
||||
|
||||
@@ -264,7 +264,7 @@ dirname(const char *name)
|
||||
len = strlen(name);
|
||||
p = &name[len - 1];
|
||||
|
||||
if (*p == '/') p--; // skip the trailing /
|
||||
if (*p == '/') p--; /* skip the trailing / */
|
||||
|
||||
while (p != name && *p != '/') p--;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user