mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-29 16:26:39 +01:00
Package: code cleanup
This commit is contained in:
@@ -28,7 +28,7 @@ void ffPrintPackages(FFPackagesOptions* options)
|
||||
{ \
|
||||
printf("%u (%s)", counts.var, (name)); \
|
||||
if((all -= counts.var) > 0) \
|
||||
printf(", "); \
|
||||
fputs(", ", stdout); \
|
||||
};
|
||||
|
||||
#define FF_PRINT_PACKAGE(name) FF_PRINT_PACKAGE_NAME(name, #name)
|
||||
@@ -40,7 +40,7 @@ void ffPrintPackages(FFPackagesOptions* options)
|
||||
if(counts.pacmanBranch.length > 0)
|
||||
printf("[%s]", counts.pacmanBranch.chars);
|
||||
if((all -= counts.pacman) > 0)
|
||||
printf(", ");
|
||||
fputs(", ", stdout);
|
||||
};
|
||||
|
||||
FF_PRINT_PACKAGE(dpkg)
|
||||
|
||||
Reference in New Issue
Block a user